Add CSS animation when DIV appears

Quotesautol

New Member
If you take a look at this website, you'll see that as you scroll and hit certain areas, a fade in animation plays, and brings the content to view. I've tried looking through the source to try to understand how they do this, but I haven't found any luck yet.I'm guessing they use Javascript/jQuery to add a class when the DIV appears like so:\[code\]$('#element').addClass('animation');\[/code\]But the question remains of how do they know when the DIV appears to call such Javascript?
 
Back
Top