简体   繁体   English

仅滚动到锚点/覆盖滚动

[英]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/ 我想实现一个功能,页面自动滚动到下一个锚点(向上或向下),类似于此页面: 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 :( 我已经有点设置页面( http://www.cubee.ch/wip )并且大多数事情运行顺利,但我无法弄清楚如何滚动到没有链接/点击的锚点:(

Thanks for any help! 谢谢你的帮助! Simon 西蒙

There is a lot of plugin to make this. 有很多插件可以做到这一点。 Here is one: 这是一个:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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