Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

jQuery activate when is in the div

Good day! I just want to ask if there is any jQuery method that activates when I scroll down and currently showing the content or specific div..

Ex:

The content should animate when I scroll down like they should appear once I scroll down and arrived in their respective divs.

Thanks!

Doing this as a comment, seeing that it doesn't answer you question since it's vanilla JS, but you should check this video out. The functionality is exactly what you're asking about. https://www.youtube.com/watch?v=-iOdDz2LnEk

Correction: He's using jQuery.

1 Answer

I once did something similar for a onepage website. On my side, I used wow.JS. It's easy to use. Here is the link: http://mynameismatthieu.com/WOW/docs.html

wow.JS is so funny. Things just bouncing all over the page.