简体   繁体   中英

Responsively animate page elements while scrolling using JavaScript [EDIT: Parallax Scrolling]

I'm certain this has been brought up in the past; however I'm at a loss for a term.

On this web page for square, the user scrolls through the section titled "At Square, different disciplines collaborate to design beautifully simple solutions."and the animation is activated to the right at that specific point on the page. As the user scrolls back the image reverts and so on. How are they achieving this?

AUG 2013: So it's been nine months since I've asked this question and parallax scrolling has just about run it's course. I'm attaching several links for further reading on this subject ranging from how to achieve it to why to avoid it.

Examples of parallax scrolling:


Tutorials:


Thoughts:


It is called parallax scrolling .

They just detect the window position and then apply a jquery animation when the window is scrolled to whatever points they set.

See an in-depth explination and tutorial here: http://coding.smashingmagazine.com/2011/07/12/behind-the-scenes-of-nike-better-world/

There is an example and opensource GitHub project here: http://prinzhorn.github.com/skrollr/

In my opinion it is normally bad design. I suppose it can be subtle and done well but it often is distracting for no real purpose.

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