最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - How to animate images on page scroll? - Stack Overflow

matteradmin4PV0评论

I have a page where I have few images. I would like to know how to animate images as a user scrolls down the page and the images bee visible? Take a look at this page: /?theme=Divi

As you scroll down, each image animates - (fall down, slide in) + Fade. What is this effect called and how it can be achieved? Can it be done with pure CSS3 or JS is also required?

Thanks.

I have a page where I have few images. I would like to know how to animate images as a user scrolls down the page and the images bee visible? Take a look at this page: http://www.elegantthemes./demo/?theme=Divi

As you scroll down, each image animates - (fall down, slide in) + Fade. What is this effect called and how it can be achieved? Can it be done with pure CSS3 or JS is also required?

Thanks.

Share Improve this question asked Jan 30, 2014 at 11:48 BlueboyeBlueboye 1,4944 gold badges27 silver badges54 bronze badges 2
  • css transitions is what u need – deW1 Commented Jan 30, 2014 at 11:50
  • 1 @monners: What is up with people here on stackoverflow? I am just asking for ideas. If you don't have anything to contribute, please refrain from menting. No one asked you to do work for me. If you have a such a problem, go troll somewhere else. – Blueboye Commented Jan 30, 2014 at 11:57
Add a ment  | 

2 Answers 2

Reset to default 1

I found Skrollr.js to be the best tool for on scroll animations.

Check our these two tutorials to get you started with Skrollr:

  • Simple parallax scrolling tutorial
  • How to create a parallax scrolling website

[EDIT] Or you could use scrollReveal.js, it does what it says - reveals elements as you scroll down the page.

Basically Javascript is needed here in order to follow the user scrolling down, and animating when he gets to specific position.

I highly remending using GreenSock animations: http://www.greensock./get-started-js/

You can read more about it here: http://codeaway.info/parallax-and-scrolling-control-of-tweens-with-greensock-ap-js/

Good luck.

Post a comment

comment list (0)

  1. No comments so far