# AOS Animation Catalog Complete catalog of all 50+ built-in animations available in AOS (Animate On Scroll). ## Table of Contents - [Fade Animations](#fade-animations) - [Slide Animations](#slide-animations) - [Zoom Animations](#zoom-animations) - [Flip Animations](#flip-animations) - [Animation Combinations](#animation-combinations) - [Custom Animations](#custom-animations) ## Fade Animations Fade animations gradually change opacity. These are the simplest and most performant animations. ### Basic Fade #### `fade-in` Simple fade in from transparent to opaque. ```html
Fades in
``` **Use cases**: Simple reveals, subtle content appearance ### Directional Fades #### `fade-up` Fades in while moving upward from below. ```html
Fades up from bottom
``` **Use cases**: Content blocks, cards, text sections, CTA buttons #### `fade-down` Fades in while moving downward from above. ```html
Fades down from top
``` **Use cases**: Headers, hero titles, navigation menus #### `fade-left` Fades in while moving left (coming from the right). ```html
Fades left from right
``` **Use cases**: Text blocks, images on right side of layout #### `fade-right` Fades in while moving right (coming from the left). ```html
Fades right from left
``` **Use cases**: Text blocks, images on left side of layout ### Diagonal Fades #### `fade-up-right` Fades in while moving diagonally up and to the right. ```html
Fades up-right diagonally
``` **Use cases**: Grid items, cards in top-left position #### `fade-up-left` Fades in while moving diagonally up and to the left. ```html
Fades up-left diagonally
``` **Use cases**: Grid items, cards in top-right position #### `fade-down-right` Fades in while moving diagonally down and to the right. ```html
Fades down-right diagonally
``` **Use cases**: Grid items, cards in bottom-left position #### `fade-down-left` Fades in while moving diagonally down and to the left. ```html
Fades down-left diagonally
``` **Use cases**: Grid items, cards in bottom-right position ## Slide Animations Slide animations move elements without changing opacity. More dramatic than fades. ### `slide-up` Slides up from below (no fade). ```html
Slides up
``` **Use cases**: Modal overlays, bottom sheets, notifications ### `slide-down` Slides down from above (no fade). ```html
Slides down
``` **Use cases**: Dropdown menus, alerts, top banners ### `slide-left` Slides left from the right (no fade). ```html
Slides left
``` **Use cases**: Side panels, drawer menus, image carousels ### `slide-right` Slides right from the left (no fade). ```html
Slides right
``` **Use cases**: Side panels, drawer menus, timeline items ## Zoom Animations Zoom animations scale elements from small to normal size (or vice versa). ### Basic Zoom #### `zoom-in` Zooms in from smaller to normal size, centered. ```html
Zooms in
``` **Use cases**: Featured images, product photos, logos, icons #### `zoom-out` Zooms out from larger to normal size, centered. ```html
Zooms out
``` **Use cases**: Background images, hero sections, splash screens ### Directional Zoom In #### `zoom-in-up` Zooms in while moving upward. ```html
Zooms in from bottom
``` **Use cases**: Gallery images, product cards, testimonials #### `zoom-in-down` Zooms in while moving downward. ```html
Zooms in from top
``` **Use cases**: Headers, hero content, call-to-action sections #### `zoom-in-left` Zooms in while moving left (from right). ```html
Zooms in from right
``` **Use cases**: Content blocks, feature highlights (right side) #### `zoom-in-right` Zooms in while moving right (from left). ```html
Zooms in from left
``` **Use cases**: Content blocks, feature highlights (left side) ### Directional Zoom Out #### `zoom-out-up` Zooms out while moving upward. ```html
Zooms out moving up
``` **Use cases**: Attention-grabbing elements, special announcements #### `zoom-out-down` Zooms out while moving downward. ```html
Zooms out moving down
``` **Use cases**: Hero overlays, introductory content #### `zoom-out-left` Zooms out while moving left. ```html
Zooms out moving left
``` **Use cases**: Dynamic content transitions #### `zoom-out-right` Zooms out while moving right. ```html
Zooms out moving right
``` **Use cases**: Dynamic content transitions ## Flip Animations Flip animations create 3D rotation effects. These are more complex and should be used sparingly. ### `flip-up` Flips up (rotates around X-axis). ```html
Flips up
``` **Use cases**: Cards, product reveals, special features **Note**: More CPU-intensive than other animations ### `flip-down` Flips down (rotates around X-axis). ```html
Flips down
``` **Use cases**: Cards, dropdown reveals **Note**: More CPU-intensive than other animations ### `flip-left` Flips left (rotates around Y-axis). ```html
Flips left
``` **Use cases**: Card flips, panel transitions **Note**: More CPU-intensive than other animations ### `flip-right` Flips right (rotates around Y-axis). ```html
Flips right
``` **Use cases**: Card flips, panel transitions **Note**: More CPU-intensive than other animations ## Animation Combinations ### Staggered Animations Create sequential reveals by using delays: ```html
Item 1
Item 2
Item 3
Item 4
``` **Recommended delay increment**: 50-150ms between items ### Mixed Animations Combine different animation types for visual interest: ```html

Heading

Subtext

``` ### Alternating Patterns Create rhythm with alternating directions: ```html
From left
From right
From left
From right
``` ## Custom Animations Create custom animations using CSS: ### Example: Custom Bounce ```css /* Define animation */ @keyframes custom-bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } } /* Apply to AOS element */ [data-aos="custom-bounce"] { opacity: 0; transform: translateY(100px); transition-property: transform, opacity; } [data-aos="custom-bounce"].aos-animate { opacity: 1; transform: translateY(0); animation: custom-bounce 1s ease-out; } ``` ```html
Bounces in!
``` ### Example: Custom Rotate ```css [data-aos="rotate-in"] { opacity: 0; transform: rotate(-180deg) scale(0.5); transition-property: transform, opacity; } [data-aos="rotate-in"].aos-animate { opacity: 1; transform: rotate(0) scale(1); } ``` ```html
Rotates in!
``` ### Example: Custom Slide Bounce ```css [data-aos="slide-bounce"] { opacity: 0; transform: translateX(-100px); transition-property: transform, opacity; } [data-aos="slide-bounce"].aos-animate { opacity: 1; transform: translateX(0); animation: bounce-effect 0.6s; } @keyframes bounce-effect { 0% { transform: translateX(-100px); } 60% { transform: translateX(10px); } 80% { transform: translateX(-5px); } 100% { transform: translateX(0); } } ``` ```html
Slides with bounce!
``` ## Animation Performance Guide ### Performance Ranking (Best to Worst) 1. **Fade** animations (opacity only) - Best performance, GPU-accelerated - Use for most content 2. **Slide** and **Zoom** animations (transform only) - Good performance, GPU-accelerated - Use for featured content 3. **Flip** animations (3D transforms) - Lower performance, more CPU-intensive - Use sparingly for special elements ### Optimization Tips #### 1. Prefer Simpler Animations ```html
Content
Content
``` #### 2. Limit Animation Count ```html
Animated
Static
Static
Animated
Item 1
Item 2
Item 3
``` #### 3. Use Shorter Durations ```html
Content
Content
``` #### 4. Disable on Mobile (Optional) ```javascript AOS.init({ disable: 'mobile' // or window.innerWidth < 768 }); ``` ## Animation Selection Guide ### By Content Type | Content Type | Recommended Animation | Alternative | |--------------|----------------------|-------------| | Hero Heading | `fade-down` | `zoom-in-down` | | Hero Subtext | `fade-up` | `slide-up` | | CTA Button | `zoom-in` | `fade-up` | | Feature Cards | `fade-up` (staggered) | `zoom-in-up` | | Image Gallery | `zoom-in-up` | `fade-in` | | Testimonials | `zoom-in` | `fade-in` | | Statistics | `zoom-in` | `fade-up` | | Timeline Items | `slide-right` / `slide-left` | `fade-right` / `fade-left` | | Modal Overlay | `zoom-in` | `fade-in` | | Notifications | `slide-down` | `fade-down` | | Product Cards | `zoom-in-up` | `fade-up` | | Text Blocks | `fade-right` / `fade-left` | `slide-right` / `slide-left` | | Icons | `zoom-in` | `fade-in` | | Navigation | `fade-down` | `slide-down` | ### By User Experience Goal | Goal | Animation | Example | |------|-----------|---------| | **Subtle** | `fade-in`, `fade-up` | About text, descriptions | | **Attention-grabbing** | `zoom-in`, `zoom-out` | CTA buttons, special offers | | **Directional flow** | `slide-*`, `fade-*` with direction | Reading flow, timelines | | **Playful** | `flip-*`, diagonal fades | Portfolio items, creative sections | | **Professional** | `fade-up`, `fade-in` | Corporate sites, documentation | ## Quick Reference ### Fade Animations (9) - `fade-in` - `fade-up`, `fade-down`, `fade-left`, `fade-right` - `fade-up-right`, `fade-up-left`, `fade-down-right`, `fade-down-left` ### Slide Animations (4) - `slide-up`, `slide-down`, `slide-left`, `slide-right` ### Zoom Animations (11) - `zoom-in`, `zoom-out` - `zoom-in-up`, `zoom-in-down`, `zoom-in-left`, `zoom-in-right` - `zoom-out-up`, `zoom-out-down`, `zoom-out-left`, `zoom-out-right` ### Flip Animations (4) - `flip-up`, `flip-down`, `flip-left`, `flip-right` **Total**: 28 built-in animations ## Best Practices 1. **Consistency**: Stick to 2-3 animation types per page 2. **Hierarchy**: Use more dramatic animations (zoom, flip) for important content 3. **Direction**: Match animation direction to layout flow 4. **Timing**: Use delays to create sequences (100-200ms between items) 5. **Performance**: Prefer fade/slide over flip animations 6. **Mobile**: Consider disabling or simplifying animations on mobile 7. **Accessibility**: Respect `prefers-reduced-motion` user preference ```javascript // Respect reduced motion preference AOS.init({ disable: function() { return window.matchMedia('(prefers-reduced-motion: reduce)').matches; } }); ```