I am using custom scroll bar for my html page (scrollbar plugin). when i used snap scroll css with scroll bar plugin its working fine but it destroyed the smoothness of the scroll bar. like when i scroll down then it stop for a moment and suddenly scroll down to next container.
here is the snap scroll css
.container {
scroll-snap-type: mandatory;
scroll-snap-points-y: repeat(300px);
scroll-snap-type: y mandatory;
}
.child {
scroll-snap-align: start;
}
I have also tried to use the Iscroll plugin but its not working for me.
Can anybody provide me any jquery/JavaScript solution or any custom scroll bar who have snap scrolling functionality?
Use this:
scroll-snap-type: y proximity
To create scroll snap use from this link : practical css scroll spanpping
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.