简体   繁体   English

如何通过向下滚动页面来向下滚动元素?

[英]How to move elements on scroll-down with scrolling down the page?

Please look at this website .请看这个网站 as you see in some sections, when you scroll down the page, the actual page is not going down, only the elements and images start moving for taking some effect.正如您在某些部分看到的那样,当您向下滚动页面时,实际页面不会向下移动,只有元素和图像开始移动以产生一些效果。 I did my best to implement such thing but I failed how do I can implement such thing (specially taking the effect)?我尽力去实现这样的东西但是我失败了我怎么才能实现这样的东西(特别是效果)?

A very nice site, and a very good example of Parallax Scrolling .一个非常好的网站,也是一个很好的视差滚动示例。

Achieving a site just like that is going to take a long time, but you can start by looking at some parallax sites here , to get an idea of the source code and look through some demo's.实现这样的站点需要很长时间,但您可以先在这里查看一些视差站点,以了解源代码并浏览一些演示。

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

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