Updated

Technology · Code & frameworks

AOS

michalsnik.github.io
Open source

What is AOS?

AOS is a small JavaScript and CSS library that animates elements on a page as visitors scroll. Its name stands for Animate On Scroll, and it is free, open source software under the MIT license.[1][2][3]

AOS is a JavaScript library that animates elements as they scroll into view. It offers a variety of pre-defined animations and allows for easy customization. AOS is designed to be lightweight and performance-oriented, making it an excellent choice for adding subtle, engaging animations to websites without compromising load times or smoothness.

AOS belongs toJavaScript librariescategory.

What it is

A scroll animation library[1]

How you use it

Add a data-aos attribute to an element[1]

License

MIT[3]

Latest stable

Version 2.3.4[3]

49websites

use it — 1.9% of the 2,539 websites we scanned in the last 12 months

#17of 108

tools in its category seen in our scans (we recognize 253)

11public pages

on UptimeCard — open any of them to see how that site is doing

In short: a simple way to animate elements on scroll with HTML attributes; the thing to watch is that its latest stable release dates from 2018.[1][3][4]

2.65% of all websites we track run AOS▲ 0.02 points since 20 Sep

What is AOS used for?

In short, from the websites we scan

Animating elements on scroll
Elements animate as the visitor scrolls down, and can animate again when scrolling back up.[1]
Adding effects with HTML attributes
A data-aos attribute on an element is all it takes to trigger an animation.[1]
Fine-tuning animation timing
Offset, duration, delay and easing can be set per element or as defaults.[1]
Animating once or every time
A setting chooses whether an animation fires once or every time you scroll to the element.[1]
Triggering from another element
An anchor element can decide when an animation starts instead of the element itself.[1]
What it does
AOS is one of the javascript libraries tools websites use. In our scans it is #17 of the 108 we see.
Used together with
It is often installed next to Google Analytics, PHP, Cloudflare.

Should you use AOS?

The 10-second version, from the vendor’s own pages and what we see in our scans

AOS fits if…

  • You want simple scroll reveal effects added with HTML attributes and no animation code[1][2]
  • You want animations to replay when visitors scroll back up[1]

Look elsewhere if…

  • You need scrubbing, pinning or snapping tied to scroll position, which GSAP's ScrollTrigger describes[5]
The latest stable release is version 2.3.4 from October 2018, and a version 3.0.0 beta has stayed on the next tag[3][4][6]

AOS next to ScrollReveal and GSAP

Three ways to animate on scroll. Statements come from each project's own page or package; website counts and speed are ours.

AOSscrollrevealGSAP
What each one says it is
What it isScroll animationa small library driven by attributes[1]Scroll revealanimates elements as they scroll into view[7]Animation librarywith a scroll plugin[8][5]
LicenseMITfree and open source[3]GPL-3.0as listed on npm[7]No-charge licenseGSAP's own standard license[9]
What we see in our scans
Websites running it491.9% of 2,539 scanned sites2too few to compare1375.4% of 2,539 scanned sites
Typical page load time3.6 s11 public sites—3.4 s✓37 public sites
Typical page weight2.8 MB✓typical home page—4.1 MBtypical home page

Scan rows count public pages only; a tool needs at least 5 measured sites to appear.

  • scrollreveal: A library that animates elements as they scroll into view[7]
  • GSAP: A JavaScript animation library with a scroll-driven plugin[8][5]

Choose AOS if…

  • you want attribute-driven reveal effects under a permissive MIT license[1][3]

Choose scrollreveal if…

  • you want a library that animates elements as they scroll into view[7]

Choose GSAP if…

  • you want scroll-linked animation with pinning, scrubbing and snapping[5]

Support and help for AOS

How the vendor says you can reach it, and the public help community

Stack Overflow

61 questions[12][13]

53% have an upvoted answer. [aos.js] questions

AOS versions

The newest release, the series that still gets fixes, and what changed

Latest release

2.3.4[3][4]

Released 3 Oct 2018

Maintained series

2

What changed in 2.0.0

  • Version 2.0.0 stopped supporting the aos attribute, so markup must use data-aos[1]
  • Version 2.0.4 disabled AOS on browsers up to Internet Explorer 9[10]

What changed in 1.2.0

  • Version 1.2.0 made AOS available as a UMD module for AMD, global, Node and ES6 use[1]

What AOS sites add on top

How many of the 49 AOS sites we scanned also run each tool, grouped by what the tool does

Analytics

Google Analytics
80%39 sites
Facebook Pixel
22%11 sites
Linkedin Insight Tag
22%11 sites

Tag manager

Google Tag Manager
69%34 sites

Marketing

HubSpot
22%11 sites

Page builder

Oxygen
16%8 sites

Search visibility

Yoast SEO
16%8 sites

The full bar means every AOS site. A site can run several tools for one job, so the shares of tools in one group can add up to more than 100%.

How AOS sites protect themselves

Share of the 49 sites we scanned that run each protection

HSTS67% · 33 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

Cloudflare Bot Management25% · 12 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

Protections add up, they do not replace each other: a site can run all of them.

At a glance

UptimeCard's own scans and tests of 2,539 websites · refreshed weekly

How AOS sites scoreout of 100 · hover or tap a score for details

58PerformanceLowaverage site: 5194AccessibilityGoodaverage site: 9196Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about as fast as the average site

AOS sites
3.6 s
All sites
3.5 s

Most AOS sites load in 2.6–4.4 s. Home page weight: 2.8 MB vs 3.4 MB for all sites. 11 public sites measured.

Who uses it?

Technology and Software is the biggest group

Technology and Software64%
Cybersecurity18%
Health and Wellness9%
Software as a Service (SaaS)9%

Share of 11 classified public sites. “× average” compares with all 961 public sites.

How AOS sites are built

Closest partners. The number says how many times more often the tool runs on AOS sites than on an average website. Hover a partner for its share of sites.

Oxygen52×CivicTheme28×HubSpot CMS Hub11×Unpkg6×Slick5×Twitter Emoji (Twemoji)4×Font Awesome4×HubSpot Analytics3×Google Hosted Libraries3×

Stacks we see most. Tools that tend to run together with AOS on the same websites. The percentage is the share of all 49 AOS sites that run the whole stack.

6 stacks · swipe, drag or use the arrows
#1

AOS + CivicTheme + Google Hosted Libraries + Oxygen

14.3%7 of 49 sites
#2

AOS + Unpkg + HubSpot CMS Hub

12.2%6 of 49 sites
#3

AOS + jsDelivr + cdnjs + Unpkg

8.2%4 of 49 sites
#4

AOS + jsDelivr + HubSpot CMS Hub

8.2%4 of 49 sites
#5

AOS + cdnjs + HubSpot CMS Hub

8.2%4 of 49 sites
#6

AOS + Yoast SEO + Contact Form 7

8.2%4 of 49 sites

Websites using AOS

49 websites use AOS: 1.9% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Who is behind AOS

From its own pages and public records, with sources

AOS

since 2015[11]

Its story

  1. 2015

    The AOS repository was created on GitHub as a small CSS-driven library for animating elements as the page scrolls.[11][1]

  2. 2016

    Version 1.2.0 made AOS a UMD module, so the same file works as an AMD, global, Node or ES6 module.[14][1]

  3. 2016

    Version 2.0.0 dropped support for the old aos attribute, so markup had to use data-aos.[15][1]

  4. 2018

    Version 2.3.4 became the latest stable release, and a 3.0.0 beta followed on the next tag the same day.[4][3][16][6]

Questions about AOS

What is AOS?
AOS is a small JavaScript and CSS library that animates elements on a page as visitors scroll. Its name stands for Animate On Scroll, and it is free, open source software under the MIT license.
What is AOS used for?
Elements animate as the visitor scrolls down, and can animate again when scrolling back up. A data-aos attribute on an element is all it takes to trigger an animation. Offset, duration, delay and easing can be set per element or as defaults. A setting chooses whether an animation fires once or every time you scroll to the element. An anchor element can decide when an animation starts instead of the element itself. AOS is one of the javascript libraries tools websites use. In our scans it is #17 of the 108 we see. It is often installed next to Google Analytics, PHP, Cloudflare.
How do I add AOS to an element?
Add a data-aos attribute to the HTML element, and the animation runs when you scroll to it.[1]
Do animations replay when I scroll back up?
Yes. Elements animate back to their previous state and can animate again if you scroll down, unless you set an element to fire only once.[1]
Can I delay or slow down an animation?
Yes. Settings cover offset, duration, easing and delay, and you can set them per element or as defaults.[1]
Which module formats does AOS support?
Since version 1.2.0 it is available as a UMD module, so you can use it as AMD, Global, Node or ES6 module.[1]
Does AOS work in old browsers?
AOS disables itself on unsupported browsers, which since version 2.0.4 means Internet Explorer 9 and older.[10]
Is AOS still maintained?
Its latest stable release, 2.3.4, was published in October 2018. The GitHub repository last received a push in March 2024.[3][4][11]
How many websites use AOS?
We found AOS on 49 of the 2,539 websites we scanned in the last 12 months (1.9%). 11 of them have a public status page.
What are the alternatives to AOS?
Other javascript libraries tools we recognize include jQuery, core-js, Swiper, jQuery Migrate.

Is your website built with AOS?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card