{post.title}
{post.author} • {post.date}
{/* Don't animate body text - better for readability */}# AOS Examples and Integration Patterns Production-ready code examples for AOS (Animate On Scroll) integration across different frameworks and use cases. ## Table of Contents - [Quick Start Templates](#quick-start-templates) - [React Integration](#react-integration) - [Next.js Integration](#nextjs-integration) - [Vue.js Integration](#vuejs-integration) - [Common Patterns](#common-patterns) - [Performance Examples](#performance-examples) - [Accessibility Patterns](#accessibility-patterns) ## Quick Start Templates ### Minimal CDN Setup ```html
This content fades in with a delay.
``` ### NPM Setup (ES6) ```bash npm install aos@next ``` ```javascript // main.js import AOS from 'aos'; import 'aos/dist/aos.css'; AOS.init({ duration: 800, once: true, offset: 100 }); ``` ```htmlYour content here
Hero subtext
Server-side rendered content with scroll animations
{feature.description}
{description}
Content here
The most powerful platform for creating extraordinary experiences
Optimized for speed and performance
Stunning designs that users love
Enterprise-grade security built-in
{product.price}
Description of the feature...
Description of the feature...
{post.author} • {post.date}
{/* Don't animate body text - better for readability */}This content will be announced to screen readers