Animate On Scroll Library
Classic animation - elements fade in from below.
Elements fade in from above.
Elements slide in from the right.
Elements slide in from the left.
Element scales up from center.
Scales up while moving from below.
Element scales down from larger size.
Animation with a slight pull-back effect before entering.
Smooth cubic easing with 200ms delay.
Slow, graceful animation over 1.5 seconds.
Animations
Gzipped Size
CSS Driven
GitHub Stars
Element slides in from outside the viewport on the left.
Element slides in from outside the viewport on the right.
Install via npm or include CDN links in your HTML.
Initialize AOS in your JavaScript file.
Add data-aos attributes to your HTML elements.
You can configure AOS globally on initialization:
Popular Options:
once: true - Animate only once (don't reverse)mirror: true - Animate out when scrolling pastoffset: 120 - Trigger 120px before element enters viewportdisable: 'mobile' - Disable on mobile devicesSimple, powerful, and flexible scroll animations
Mix animations, delays, durations, and easing to create unique experiences!