Share Posted October 23, 2017 Are there any posts or howtos on animating an element when it enters the viewport? So, scrolling the page, it enters the viewport and then animates. I’ll figure out an animation but would like to know how to have an element only animate when it enters the viewport on scroll. Link to comment Share on other sites More sharing options...
Share Posted October 23, 2017 Hi @benjino If you want to use a 3rd party library, ScrollMagic is good for that kind of thing. You can search the forum for "ScrollMagic" and you'll find lots of threads about it. http://scrollmagic.io/ If you don't want a 3rd party library, @OSUblake has some options in this thread: You may also want to keep an eye on this thread in which we're having a discussion about the new Intersection Observer API Hopefully that gets you started. Happy tweening. 1 1 Link to comment Share on other sites More sharing options...
Author Share Posted October 23, 2017 Thanks! I was using viewportChecker and animate.css but today the latest version of Chrome for OSX wasn't cooperating. I'll try one of these. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now