Vue Aos

screenshot of Vue Aos
vite

A Vue component to add "animation on scroll" to a Vue component or HTML element

Overview

Vue Aos is a dynamic Vue directive that enhances HTML elements with animations triggered by scroll events. By leveraging the powerful IntersectionObserver API, it allows developers to create engaging visuals that activate as users scroll through the page. This capability opens up a plethora of design choices, including infinite scrolling, lazy loading, and immersive animations, making it ideal for developers who want to elevate their user interface.

The latest updates bring significant improvements and usability enhancements that streamline the integration of this directive into projects. With breaking changes such as the removal of unnecessary components and the introduction of CSS variables, Vue Aos is now more efficient and easier to use than ever before.

Features

  • Seamless Integration: Easily installable via popular package managers like npm and Yarn, making it accessible for all developers.
  • Animation Class Support: Simply assign a CSS animation class to elements, giving you full control over their appearance during scroll events.
  • Once Modifier: Enables animations to trigger just once, providing a cleaner user experience without repeated animations upon subsequent scrolls.
  • Custom Selector: Utilize the selector property to apply animations to specific child elements, tailoring effects to your needs.
  • Customizable Threshold: Adjustable threshold settings allow you to define when animations should start, offering enhanced control over your UI experience.
  • CSS Variable: Implement the --isIntersecting CSS variable to smoothly transition animations based on the element's visibility in the viewport.
  • Event Hooks: Access animation start and end events to execute additional actions during these moments, enhancing interactivity.
vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects