How to Easily Animate Website Elements on Scroll Using the Free AOS Library

On-scroll livings can add fairly the sumptuou gist to your website. A little invigorated polish can go a long way towards building your site examine well-rounded and terminated. With JavaScript and CSS, you can impel points fade, move, or even spin as they appear when you scroll down a page.

And you don’t even have to code it all yourself! Thanks to the free AOS Library, beautifying your website is as simple as including a dialogue. Just use a CDN or a parcel director to install the JavaScript and CSS records, and put a few fronts of system. Then crafting animations will be a breeze.

We’ll show you how to be implemented the AOS library right here, plus give you some awesome examples of AOS experiments in action.

UNLIMITED DOWNLOADS: Email, admin, property sheet& website templates


Setting Up AOS

Installing AOS to your locate is a simple process if you’re exerting a CDN or box administrator, which host all the data for you and install them properly. If you don’t want to do that, you’ll need to download the data and specified them up yourself.

With a box manager, all you need to do is input a code into the command line/ terminal of the server you installed it on. npm is one popular answer, and it comes automatically wrap with Node.js more. Simply use the following command πŸ˜› TAGEND

npm install –save aos @next

There’s too Bower, which requires npm. While it’s a deprecated tool, it’s still maintained and is used by numerous. If you have it invested, start this script πŸ˜› TAGEND

bower install aos –save

Finally, there’s Yarn, a popular alternative to Bower. This is the code you’ll need πŸ˜› TAGEND

yarn add aos @next

If you prefer to use a CDN, these dialogues will install the files and stylesheets you’ll need to get started. Make sure to include both of them or it won’t work properly.

The CSS scripts πŸ˜› TAGEND

The JS dialogues πŸ˜› TAGEND

Whichever method you used, the last step is to initialize AOS with this code and terminated the setup process πŸ˜› TAGEND

Then it’s simply a matter of creating the animations! Check out this table of animation restraints, and these predefined animations you can use. It’s up to you to craft the perfect outcomes that fit your peculiar website. If you get stuck, try this in-depth tutorial written by the developer. It has spate of supportive examples.

AOS Experimentations and Examples

The best path to learn a new library is by seeing the code in action, and that’s why sites like CodePen are so valuable. Check out the snippets below, and you’ll be able to see working AOS JavaScript alongside the output. You can even nip the system in real experience. Then use the knowledge you gain to build your own awesome animations!


See the Pen Model by Ricardo Pires( @skeezrocco) on CodePen.

AOS Animate On Scroll Library

See the Pen AOS Animate On Scroll Library by Oltika( @oltika) on CodePen.

AOS- animations

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

AOS- linchpin

See the Pen AOS- fix by Snik( @michalsnik) on CodePen.

AOS- fix& anchor-placement

See the Pen AOS- fasten& anchor-placement by Snik( @michalsnik) on CodePen.

AOS- tradition animations

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

Animate on Scroll Examples- Disable Animations

See the Pen Animate on Scroll Examples- Disable Animaions by SitePoint( @SitePoint) on CodePen.


See the Pen AOS JS by manufufu( @WAWI) on CodePen.


See the Pen Movie by Artem( @Artem91) on CodePen.

Scroll Effects Made Easy

Thanks to JavaScript libraries like AOS, composing websites with beautiful livings isn’t such a huge deal. It might take a bit to learn the ins and outs of a library, especially if you’re a beginner, but it offsets the whole process a lot more accessible to brand-new entanglement developers. And it means that you don’t have to create it yourself from scratch.

If you’re looking for a library that makes chic scroll effects a breeze to implement, obviously consider trying AOS. It’s simple to install and even easier to learn, so you can have on-scroll livings up and running in a snap.

Read more: