Animate on Scroll Examples

Scroll down to see animations trigger as elements enter the viewport

Example 1: Fade Animations

Simple fade effects when elements enter the viewport.

Fade In

data-animate="fade-in"

Fade From Top

data-animate="fade-from-top" data-animate-delay="100"

Fade From Bottom

data-animate="fade-from-bottom" data-animate-delay="200"

Example 2: Directional Slide Effects

Elements slide in from different directions.

Slide From Left

data-animate="fade-from-left"

Slide From Right

data-animate="fade-from-right" data-animate-delay="150"

Slide In Right

data-animate="slide-in-right" data-animate-delay="300"

Example 3: Zoom and Spin Effects

Dynamic animations with scaling and rotation.

Zoom In

data-animate="fade-zoom-in" data-animate-duration="800"

Spin In

data-animate="spin-in" data-animate-duration="700"

Example 4: Staggered Grid Animation

Multiple elements with incremental delays create a cascading effect.

Card 1

No delay

Card 2

100ms delay

Card 3

200ms delay

Card 4

300ms delay

Card 5

400ms delay

Card 6

500ms delay

Example 5: Animate Once vs Repeat

Control whether animations trigger once or every time the element enters the viewport.

Animate Once

data-animate-once="true"

Scroll past this, then scroll back - it won't animate again

Repeat Animation

data-animate-once="false"

Scroll past this, then scroll back - it will animate again!

Example 6: Custom Timing Control

Fine-tune animation speed for perfect timing.

Fast (300ms)

Quick and snappy

Normal (600ms)

Balanced timing

Slow (1200ms)

Smooth and dramatic

Example 7: Card Reveal (Premium Card Animation)

Specially designed for cards with subtle upward float, gentle scale, and blur-to-focus effect with elastic easing for a "settling into place" feel.

Card 1

data-animate="card-reveal"

Notice the smooth scale and blur-to-focus effect

Card 2

data-animate-delay="150"

Staggered for cascading effect

Card 3

data-animate-delay="300"

Perfect for feature sections