Struggling with creating a unique card slider using Vue JS? After exploring npm packages like Vue Carousel 3D and Vue Slick, I haven't found the ideal slider for my project. My specific card slider setup is showcased below:
https://i.sstatic.net/GiNcn.png
In this design, there are three images displayed - one in front and two behind. The functionality I aim to achieve involves pushing the front image backward upon button press, while bringing the back image forward.
https://i.sstatic.net/kHjKO.png
I've scoured the web extensively, even delving into pure JavaScript options, yet have failed to find a suitable example. Any assistance you can provide would be greatly appreciated.
index.html
<div class="first_block">
<h2>FEATURED SHOWS</h2>
<div class="girls_gard_container">
<img class="card_1" src="https://images.unsplash.com/photo-1503023345310-bd7c1de61c7d?ixid=MXwxMjA3fDB8MHxzZWFyY2h8MXx8aHVtYW58ZW58MHx8MHw%3D&ixlib=rb-1.2.1&w=1000&q=80" alt="Girl">
<img class="card_2" src="https://images.unsplash.com/photo-1527455505333-9d3ac7adf523?ixid=MXwxMjA3fDB8MHxzZWFyY2h8OXx8Zml2ZXxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&w=1000&q=80" alt="Girl">
<img class="card_3" src="https://images.unsplash.com/photo-1597976618063-810eb50c84fb?ixid=MXwxMjA3fDB8MHxzZWFyY2h8NHx8dGFtfGVufDB8fDB8&ixlib=rb-1.2.1&w=1000&q=80" alt="Girl">
</div>
</div>
style.css
.first_block {
padding: 0px 23px 0px 23px;
margin: 5px;
}
.circle-wrap {
margin: 0px 5px 0px 5px;
}
.third_block div h2 {
font-size: 20px;
font-family: Montserrat-Medium;
}
.first_block {
width: 30%;
}
.first_block h2, .second_block h2 {
font-family: Montserrat-Medium;
margin-bottom: 0.3rem;
}
.first_block h2 {
text-align: center;
font-size: 20px;
}
.girls_gard_container {
position: relative;
bottom: 15px;
}
.card_1 {
position: absolute;
max-width: 100%;
top: 70px;
width: 100px;
height: 238px;
}
.card_2 {
position: absolute;
max-width: 100%;
top: 44px;
left: 15px;
width: 126.24px;
height: 287px;
}
.card_3 {
position: absolute;
max-width: 100%;
top: 20px;
left: 25px;
width: 240px;
height: 331px;
}