I'm trying to accomplish an effect like in http://alfabank.ru
When the user scrolls, the website will dynamically autoscroll to an anchor. Is there any way to do this using JQuery and Bootstrap?
I found an event that may help me creating this effect http://www.w3schools.com/jsref/event_onscroll.asp . Anyway, I don't know how to get the direction of the scroll
Try something like smooth-scroll .
If that is too complicated for your needs there is a simpler tutorial online at DWUser , which talks you through it.
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.