简体   繁体   中英

Scroll to anchor points only / override scrolling

I wanted to implement a function where the page automatically scrolls to the next anchor point (up or down), similar to this page: http://www.htc.com/ch-de/smartphones/htc-one-m9/

I already have the page somewhat set up ( http://www.cubee.ch/wip ) and most things run smoothly, but I could not figure out how to scroll to an anchor without a link/click :(

Thanks for any help! Simon

There is a lot of plugin to make this. Here is one:

https://github.com/alvarotrigo/fullPage.js

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM