AOS – Animate on Scroll

68747470733a2f2f7333322e706f7374696d672e6f72672f6b7476743539686f6c2f616f735f6865616465722e706e67

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) →

Elsewhere , , ,

Leave a Reply

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.