Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Animate On Scroll (AOS) library 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. This module provides integration with AOS library.
Requirements
Animate On Scroll Library. (Check demo at: http://michalsnik.github.io/aos/)
- Click here to download AOS library.
- Copy aos library in your libraries directory, so aos.js will be located in libraries at /aos/dist/aos.js .
Installation
- Copy the 'aos' module into your Drupal modules directory and enable it.
- As this module provides the integration of AOS library, to get the animations on page simply add `data-aos` attribute to element, like
<div data-aos="<em>animation_name</em>"></div>
in your html.
e.g.<div data-aos="fade-zoom-in" data-aos-offset="200" data-aos-easing="ease-in-sine" data-aos-duration="600"></div>
You can check all available animations & easing options at https://github.com/michalsnik/aos
Roadmap
- Expose configurations for AOS global options.
- Expose configuration to disable AOS library on admin pages.
Supporting organizations:
Project information
- Module categories: Accessibility, Developer Tools, Integrations
- 1,055 sites report using this module
- Created by priyankanarsule on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.