Don't miss our holiday offer - up to 50% OFF!


silver collection
Gold collection
Daimond collection
/* ==============================
GOLDEN JEWELLERS CAROUSEL
================================ */
*{
box-sizing:border-box;
}
.gj-carousel-section{
width:100%;
padding:55px 0 45px;
background:#F8F1DF;
overflow:hidden;
font-family:Arial, sans-serif;
}
/* Heading */
.gj-title{
text-align:center;
margin-bottom:35px;
}
.gj-title h2{
margin:0;
color:#641C24;
font-family:Georgia, "Times New Roman", serif;
font-size:42px;
font-weight:500;
letter-spacing:.3px;
}
/* Carousel */
.gj-carousel{
position:relative;
width:100%;
height:535px;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}
/* Track */
.gj-track{
position:relative;
width:100%;
height:100%;
}
/* Cards */
.gj-card{
position:absolute;
top:50%;
left:50%;
width:380px;
height:445px;
transform:translate(-50%,-50%);
border-radius:18px;
overflow:hidden;
background:#ddd;
transition:
transform .65s cubic-bezier(.22,.61,.36,1),
opacity .65s ease,
filter .65s ease,
z-index .65s ease;
box-shadow:0 10px 35px rgba(65,35,20,.15);
}
.gj-card img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}
/* Text */
.gj-card-title{
position:absolute;
bottom:-45px;
left:0;
width:100%;
text-align:center;
color:#641C24;
font-family:Georgia, serif;
font-size:20px;
transition:.5s ease;
}
/* ==============================
POSITIONS
================================ */
/* CENTER */
.gj-card[data-position="0"]{
transform:translate(-50%,-50%) scale(1);
opacity:1;
z-index:5;
filter:none;
}
.gj-card[data-position="0"] .gj-card-title{
bottom:-40px;
}
/* LEFT 1 */
.gj-card[data-position="-1"]{
transform:translate(calc(-50% - 365px),-50%) scale(.84);
opacity:1;
z-index:3;
filter:none;
}
/* LEFT 2 */
.gj-card[data-position="-2"]{
transform:translate(calc(-50% - 680px),-50%) scale(.68);
opacity:1;
z-index:2;
}
/* RIGHT 1 */
.gj-card[data-position="1"]{
transform:translate(calc(-50% + 365px),-50%) scale(.84);
opacity:1;
z-index:3;
}
/* RIGHT 2 */
.gj-card[data-position="2"]{
transform:translate(calc(-50% + 680px),-50%) scale(.68);
opacity:1;
z-index:2;
}
/* Hidden cards */
.gj-card[data-position="hidden"]{
transform:translate(-50%,-50%) scale(.5);
opacity:0;
z-index:0;
}
/* ==============================
ARROWS
================================ */
.gj-arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
width:68px;
height:68px;
border-radius:50%;
border:1px solid rgba(100,28,36,.5);
background:rgba(248,241,223,.85);
color:#641C24;
font-size:34px;
font-weight:300;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
z-index:20;
transition:.3s ease;
backdrop-filter:blur(5px);
}
.gj-arrow:hover{
background:#641C24;
color:#fff;
transform:translateY(-50%) scale(1.08);
}
.gj-prev{
left:4%;
}
.gj-next{
right:4%;
}
/* ==============================
MOBILE
================================ */
@media(max-width:900px){
.gj-title h2{
font-size:34px;
}
.gj-carousel{
height:480px;
}
.gj-card{
width:300px;
height:390px;
}
.gj-card[data-position="-1"]{
transform:translate(calc(-50% - 250px),-50%) scale(.75);
opacity:.45;
}
.gj-card[data-position="1"]{
transform:translate(calc(-50% + 250px),-50%) scale(.75);
opacity:.45;
}
.gj-card[data-position="-2"],
.gj-card[data-position="2"]{
opacity:0;
}
.gj-prev{
left:15px;
}
.gj-next{
right:15px;
}
.gj-arrow{
width:52px;
height:52px;
font-size:27px;
}
}
@media(max-width:600px){
.gj-carousel-section{
padding:45px 0 35px;
}
.gj-title{
margin-bottom:20px;
}
.gj-title h2{
font-size:30px;
}
.gj-carousel{
height:450px;
}
.gj-card{
width:270px;
height:350px;
border-radius:15px;
}
.gj-card[data-position="-1"]{
transform:translate(calc(-50% - 180px),-50%) scale(.7);
opacity:.25;
}
.gj-card[data-position="1"]{
transform:translate(calc(-50% + 180px),-50%) scale(.7);
opacity:.25;
}
.gj-arrow{
width:46px;
height:46px;
font-size:24px;
}
.gj-prev{
left:8px;
}
.gj-next{
right:8px;
}
}
document.addEventListener("DOMContentLoaded", function(){
const cards = Array.from(
document.querySelectorAll(".gj-card")
);
const nextBtn = document.querySelector(".gj-next");
const prevBtn = document.querySelector(".gj-prev");
let currentIndex = 2;
function updateCarousel(){
cards.forEach((card, index) => {
let position =
index - currentIndex;
/*
Make carousel infinite
*/
if(position > 2){
position -= cards.length;
}
if(position = -2 && position = cards.length){
currentIndex = 0;
}
updateCarousel();
});
/* PREVIOUS */
prevBtn.addEventListener("click", function(){
currentIndex--;
if(currentIndex = cards.length){
currentIndex = 0;
}
updateCarousel();
},4000);
/* PAUSE WHEN MOUSE IS OVER */
const carousel =
document.querySelector(".gj-carousel");
carousel.addEventListener(
"mouseenter",
function(){
clearInterval(autoSlide);
}
);
carousel.addEventListener(
"mouseleave",
function(){
autoSlide = setInterval(function(){
currentIndex++;
if(currentIndex >= cards.length){
currentIndex = 0;
}
updateCarousel();
},4000);
}
);
updateCarousel();
});
Choose Your Look
Party Look
Evening Look
Casual Look
Office Look
Modern Look
