AOS – Animate on Scroll


AOS allows you to animate elements as you scroll down, and up. If you scroll back to top, elements will animate to it’s previous state and are ready to animate again if you scroll down.

By setting data-aos-* attributes on your HTML elements, you can define which animation to use, what timing to use, etc.

<div class="some-item" data-aos="fade" data-aos-duration="500">Example Element</div>

See the Pen AOS – animations by Snik (@michalsnik) on CodePen.

Don’t want to include AOS entirely? Only want to know the essence of how stuff like this works? Then check out the Scroll Animations pen I’ve built quite some time ago.

AOS Demo →
AOS Source →
AOS Introductory Post (CSS Tricks) →

About the author

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.