Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Animate an element When it enters the viewport

Recommended Posts

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.

Share this post

Link to post
Share on other sites

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.



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.


  • Like 1
  • Thanks 1

Share this post

Link to post
Share on other sites



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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.