It doesn't seem to work when using css scroll-snap-align
.carousel {
position: relative;
display: flex;
height: 500px;
width: 100%;
scroll-snap-type: x mandatory;
overflow-x: auto;
/* Hide scrollbar */
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
.carousel .slide {
flex: 0 0 100%;
height: 100%;
position: relative;
box-sizing: border-box;
scroll-snap-align: center; <--- Here is the problem
scroll-snap-stop: always;
}
Is there any way to make it work?
It doesn't seem to work when using css scroll-snap-align
Is there any way to make it work?