Animation Patterns

Motion & Animation

Advanced animation patterns using GSAP ScrollTrigger, Framer Motion gestures, and layout animations.

Animated Timeline Steps

Horizontal timeline with sequential animations triggered on scroll.

1
2
3
4
5

Each circle animates in sequence with scale and opacity when scrolled into view. The connecting lines draw from 0% to 100% width between steps.

Interactive Gesture Cards

Cards with hover, tap, and spring physics animations.

Performance

Hover to scale and rotate • Tap to compress

Spring physics: stiffness 400, damping 20

Security

Hover to scale and rotate • Tap to compress

Spring physics: stiffness 400, damping 20

Global

Hover to scale and rotate • Tap to compress

Spring physics: stiffness 400, damping 20

Developer

Hover to scale and rotate • Tap to compress

Spring physics: stiffness 400, damping 20

Animated List Reordering

Items animate smoothly to new positions when reordered.

UI Components

Dashboard Component
ID: 1
User Profile Card
ID: 2
Settings Panel
ID: 3
Notification Bell
ID: 4
Search Bar
ID: 5

Each item uses motion.div with layout prop. When shuffled, items animate to their new positions with spring physics. The AnimatePresence wrapper handles exit animations.

Parallax Scrolling Effect

Background layer scrolls at 0.4x speed relative to text content.

Parallax Demo

Scroll to see parallax effect

The gradient background moves at a different speed than the text content, creating depth and immersion.

GSAP ScrollTrigger
scrub: true
y: -120