Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

README

Six animations from the handbook playing at once: Text Particles, Water Ripple, Synthwave Grid, Liquid Glass, Fire Effect, and Before/After Slider, six of its 176 web animation techniques

Animation Handbook

A visual reference of 176 web animation techniques: watch each one play live, change most of them with plain settings, and copy a ready-made prompt for your AI assistant. Free to use, with no sign-up.

Open the live handbook →

Live site Stars License Techniques Dependencies Build


What this is

Here are 176 web animation techniques in one place, each shown working. Every page plays its animation live and gives you a ready-made prompt to paste into your AI assistant, so you can add the animation to your own site without writing the code yourself. Most pages also let you change the animation with a few plain settings, and the prompt you copy lists your choices. Each folder's README.md explains how the technique works, the values that matter, and the production gotchas, for anyone who wants to build it by hand.

Everything is plain HTML, CSS, and JavaScript: no build step, no frameworks, no CDN. Open any page's index.html from a copy of this repository and its demo runs offline; Run it locally covers the parts that need a local server. Built to inspire and teach, not to sell a library.

How to use it

  1. Pick an animation. On the home page, describe it in your own words, like "a button that bounces when clicked", or pick the part of your page it goes on: Buttons, Text, Images & cards, Backgrounds, Menus & forms, Loading & messages, Page intros, Scrolling, or Page changes. Saw one on a website and don't know its name? Answer three short questions in the finder: what moved, when, and how.
  2. See it move. Every animation plays live. Open its page to watch it big and try a few simple settings, such as speed or direction, so you see exactly what you will get. Above the demo, See inside shows the parts that make the effect (guides, hidden layers, the numbers made visible), and Compare shows it beside a version without its key idea.
  3. Copy the prompt. Paste it into your AI assistant. It describes the animation in plain words, with your settings. Every card on the home page has a Copy prompt button too.
Screen recording of the handbook: on the home page, pressing Buttons brings up cards with live previews, Success Confetti opens and plays its demo, and Copy prompt shows Copied

Famous effects

Liked an effect on a well-known website? Famous effects gathers effects people admire on such sites. Each one opens with our own working version, says in plain words what you see, names the handbook animations that make something similar, and gives you a prompt to build your own. The handbook is not connected to any of these sites or their owners.

Categories

# Category Count
01 Scroll-Based 27
02 Entrance & Exit 15
03 Page Transitions 17
04 Micro-Interactions 44
05 Text & Typography 19
06 3D & Advanced 28
07 Ambient & Background 26

Full catalog

All 176 techniques, each linked to its live demo.

Each technique's code and README are in its folder under animations/.

01 · Scroll-Based · 27 techniques

Animations driven by scroll position — parallax, sticky, scrub, snap, and storytelling.

Browse all 27 techniques in Scroll-Based
  • Parallax Depth-of-Field — Layers move at their own speed as the focus shifts. Best for cinematic intros.
  • Parallax Scrolling — Far layers move slower than near ones as you scroll. Best for hero scenes.
  • Reverse-Scrolling Columns — Side columns run the opposite way to the middle one. Best for portfolios.
  • Cover Card to Fixed Header — A tall cover shrinks into a slim header as you scroll. Best for articles.
  • Fly-in Fly-out Contact List — Rows fade and slide as they near the top or bottom edge. Best for long lists.
  • Stacking Cards — Cards stick at the top and pile into a deck. Best for step-by-step stories.
  • Scroll-Triggered Animation — Animations start, follow and pin at set scroll points. Best for landing pages.
  • Scrub Animation — Scroll plays it forward and back, like dragging a video. Best for product tours.
  • Pin Animation — One part stays put while its text changes on scroll. Best for feature lists.
  • Snap Scrolling — The box settles on one whole section at a time. Best for slides and galleries.
  • Scrollytelling — A picture beside the story changes as you read down. Best for data stories.
  • Reveal on Scroll — Cards appear as they cross a line in the box. Best for long landing pages.
  • Stagger Reveal — Items in a group appear one after another as it scrolls in. Best for card grids.
  • Horizontal Scroll — Scroll down and a row of panels slides sideways. Best for portfolios.
  • Sticky Section — A section holds still while its content changes. Best for feature tours.
  • Counter Animation — Numbers count up when they scroll into view. Best for stats.
  • Progress Bar — A bar fills as you read down the page. Best for long articles.
  • Section Wipe — Each section slides up over the one before. Best for full-screen stories.
  • Zoom Into Image — A small window opens up to fill the box as you scroll. Best for hero images.
  • Scroll Image Sequence — Scrolling plays a series of pictures like a flip-book. Best for products.
  • Smooth (Inertia) Scroll — Scrolling glides to a stop instead of jumping. Best for portfolio sites.
  • Text Fill on Scroll — Words light up one by one as you scroll. Best for key statements.
  • Scroll Velocity Skew — Rows lean when you scroll fast and straighten when you stop. Best for galleries.
  • SVG Line Draw on Scroll — A line draws itself along a route as you scroll. Best for timelines.
  • Scrollspy Navigation — A menu highlights the section you are reading. Best for long docs.
  • Scroll-Driven Background Color — The background color changes as you scroll through sections. Best for stories.
  • Hide-on-Scroll Header — Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages.

02 · Entrance & Exit · 15 techniques

Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.

Browse all 15 techniques in Entrance & Exit
  • Fade In / Fade Out — Fades in to appear and fades out to leave. Best for pop-ups and tooltips.
  • Slide In — Travels into place from one edge. Best for side panels and notifications.
  • Slide Up Reveal — Text rises into view from behind an invisible edge. Best for headlines.
  • Scale In / Zoom In — Grows from smaller to full size. Best for pop-ups and menus.
  • Clip-Path Reveal — A growing shape uncovers it while it stays still. Best for images and banners.
  • Curtain Reveal — A colored panel covers it, then slides away. Best for intros and logos.
  • Split Text Reveal — Text breaks into pieces that appear one after another. Best for headlines.
  • Letter-by-Letter Stagger — A phrase appears letter by letter or typewriter-style. Best for short headlines.
  • Word-by-Word Reveal — Words appear one after another at a reading pace. Best for quotes and intros.
  • Blur In — Comes into focus from a blur, like a camera. Best for featured cards and photos.
  • Flip In — Swings into view in 3D, like a card turning over. Best for cards and tiles.
  • Bounce In — Lands with a springy bounce. Best for badges and success messages.
  • Rotate In — Spins into place while it grows. Best for icons, stars and badges.
  • Shatter Effect — Breaks into pieces that fly apart and fade. Best for galleries and bold exits.
  • Ink Spread Reveal — Ink drops spread and merge until the picture shows. Best for art and intros.

03 · Page Transitions · 17 techniques

Full-page transitions between routes or views — crossfades, slides, portals, morphs, and the View Transitions API.

Browse all 17 techniques in Page Transitions
  • View Transitions API — The browser animates the change between two pages for you. Best for web apps.
  • Shared Element Transition — A picture grows from the list into the next page's header. Best for galleries.
  • Morph Transition — The logo changes shape to match each page you visit. Best for brand marks.
  • Crossfade Transition — The old page fades out as the new one fades in. Best for calm page changes.
  • Slide Transition — Pages slide across, and going back slides the other way. Best for step flows.
  • Zoom Transition — The pages zoom as they swap, as if moving in depth. Best for opening details.
  • Flash / Light Leak Transition — A burst of light hides the moment the page changes. Best for bold, lively sites.
  • Blur Transition — The old page blurs away and the new one comes into focus. Best for photo sites.
  • Elastic Transition — The new page slides in, goes too far and springs back. Best for playful apps.
  • Portal / Tunnel Zoom — The next page opens out of a circle you click. Best for big reveals.
  • Dissolve Transition — The page breaks into tiles that give way to the next. Best for photo galleries.
  • FLIP Technique — Cards glide to their new places when the layout changes. Best for sorting lists.
  • Circle Reveal — Pages grow from any spot you click and shrink back into it. Best for app navigation.
  • Overlay Wipe — A colored panel sweeps over the page as it changes. Best for portfolio sites.
  • Page Curl — The page peels back from its corner like paper. Best for digital magazines.
  • Cube Transition — The pages sit on a cube that turns to show the next. Best for photo stories.
  • Pixelate Transition — The page breaks into big pixels, then sharpens into the next. Best for galleries.

04 · Micro-Interactions · 44 techniques

Short, user-triggered animations — hover, click, focus, loading states, and UI feedback patterns.

Browse all 44 techniques in Micro-Interactions
  • Hover State Animation — Six ways a card can react when you point at it. Best for buttons and cards.
  • Click / Tap Ripple — A ripple spreads out from the spot you press. Best for buttons and list items.
  • Focus Ring Animation — A ring closes in around the item the Tab key reaches. Best for forms and menus.
  • Button Press Scale — Shrinks as you press it and springs back as you let go. Best for main buttons.
  • Magnetic Button — Leans toward the pointer, then springs home. Best for one main button.
  • Toggle / Switch Slide — The knob slides across as the switch turns on or off. Best for settings.
  • Heart / Like Burst — The heart pops and fills as small hearts burst out. Best for like buttons.
  • Success Confetti — Confetti bursts from the button when a task is done. Best for big moments.
  • Skeleton Loader — Gray shapes hold the place of content while it loads. Best for feeds and cards.
  • Shimmer Effect — A band of light sweeps over gray placeholders. Best for loading screens.
  • Loading Spinner — Six small shapes loop to show that something is loading. Best for short waits.
  • Progress Animation — A bar, a ring and steps fill up to show progress. Best for uploads.
  • Checkmark Draw — A tick draws itself in a circle once a task succeeds. Best for forms.
  • Form Field Morph — The label moves up out of the way as you type. Best for sign-up forms.
  • Notification Badge Pulse — A badge on an icon pulses to catch the eye. Best for unread messages.
  • Tooltip Reveal — A small label fades in after a short pause. Best for icon buttons.
  • Drawer / Panel Slide — A side panel slides in over a dimmed page. Best for mobile menus.
  • Modal Expand — A window grows out of the button you pressed. Best for detail views.
  • Accordion Open/Close — Each question opens smoothly to show its answer. Best for FAQ pages.
  • Cursor Follower — A dot trails your pointer and flips the colors under it. Best for portfolios.
  • Error Shake — A field shakes side to side when the input is wrong. Best for sign-in forms.
  • Swipe to Dismiss — A card dragged sideways flies off and the list closes up. Best for inboxes.
  • Hamburger Menu Toggle — Three lines turn into an X as the menu opens. Best for mobile menus.
  • Theme Toggle Morph — A sun turns into a moon as the colors switch to dark. Best for theme buttons.
  • Copy to Clipboard — Copy turns into a tick and Copied, then changes back. Best for codes and links.
  • Star Rating — Stars fill up to your pointer and pop when you choose. Best for reviews.
  • Toast Notification — Short messages slide into a corner, then leave on their own. Best for updates.
  • Segmented Control — A highlight slides to the option you pick. Best for switching views.
  • Pull to Refresh — Pulling a list down shows a spinner, then new items. Best for feeds.
  • Animated Gradient Border — A band of colors runs around the edge of a card or button. Best for featured offers.
  • Spotlight Hover Glow — A soft glow follows the pointer and lights card edges. Best for feature grids.
  • Add-to-Cart Fly — The product flies into the cart, which bumps and counts up. Best for shops.
  • Drag to Reorder — Drag an item and the others slide aside to make room. Best for to-do lists.
  • Rolling Numbers — Each digit rolls to its new value, like a mileage counter. Best for prices.
  • Typing Indicator — Three dots in a chat bubble move in turn while someone types. Best for chat apps.
  • Hold to Confirm — A button fills up while you hold it and acts only once it is full. Best for delete buttons.
  • Expanding Search — A search icon opens into a field, then closes when done. Best for toolbars.
  • Button Loading States — The button becomes a spinner, then a tick or a cross. Best for Save buttons.
  • Image Trail — Pictures pop up in a trail behind your pointer, then fade. Best for portfolios.
  • Gooey Menu — Small buttons ooze out of a round button like liquid. Best for quick actions.
  • Dynamic Island — A black pill grows into a notification, then shrinks back. Best for live updates.
  • Before/After Slider — Drag a line across two pictures to compare them. Best for photo edits.
  • Magnifier Lens — A lens follows your pointer and shows the picture up close. Best for product photos.
  • Card Deck Swipe — Swipe the top card left or right; the next one rises. Best for quick choices.

05 · Text & Typography · 19 techniques

Animations specifically for type — kinetic motion, character-level effects, gradient flows, and word transformations.

Browse all 19 techniques in Text & Typography
  • Kinetic Typography — Words arrive and leave one by one, each moving its own way. Best for intros.
  • Typewriter Effect — Text types itself out behind a blinking cursor. Best for short taglines.
  • Scramble / Glitch Text — Random symbols lock into the real text, left to right. Best for tech headlines.
  • Variable Font Morph — A word smoothly turns bold, then light, and leans over. Best for headlines.
  • Text Clip-Path Reveal — Each line of a headline is uncovered in turn. Best for big headlines.
  • Marquee / Ticker — Text scrolls sideways in an endless loop, with no seam. Best for news tickers.
  • Text Morphing — One word changes into the next, letter by letter. Best for short labels.
  • Text Gradient Animation — Colors flow through the letters while the text stays still. Best for headlines.
  • Outline to Fill — Hollow letters fill with color, as a wipe or a fade. Best for big headlines.
  • Enter/Exit Typography — Each phrase comes in, stays long enough to read, then leaves. Best for slogans.
  • Rotate Word Carousel — One word in a sentence keeps swapping for the next. Best for hero headlines.
  • Glitch Text — Text tears into red and cyan strips like a broken signal. Best for bold titles.
  • Text on a Path — Text travels along a wave, an arc or a circle. Best for badges and seals.
  • Wavy Text — A wave rolls through the word, letter by letter. Best for playful titles.
  • Highlighter Sweep — A marker sweeps in behind the key words, one after another. Best for key points.
  • Split-Flap Board — Tiles flip through the letters to spell a word, like an airport board. Best for hero titles.
  • Neon Flicker — Glowing letters sputter now and then, like a worn neon sign. Best for night themes.
  • Handwriting Draw — A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.
  • Text Particles — A word of dots scatters from your pointer and springs back. Best for intros.

06 · 3D & Advanced · 28 techniques

WebGL, shaders, particles, 3D transforms, simulations, and other heavier effects.

Browse all 28 techniques in 3D & Advanced
  • 3D Model Orbit — A lit 3D shape spins, or turns to face your pointer. Best for product views.
  • Scroll-Driven 3D Rotation — Scrolling turns a 3D cube from pose to pose. Best for product tours.
  • Parallax 3D Tilt — A card tilts toward your pointer, and a light slides over it. Best for cards.
  • Canvas Particle Effect — Dots drift, link up when close, and dodge your pointer. Best for tech sites.
  • Fluid Simulation — Blobs drift and melt into each other like liquid. Best for hero backgrounds.
  • Glassmorphism Animated — Frosted glass cards blur the colors behind them. Best for cards and panels.
  • WebGL Shader Animation — Moving color patterns computed for every pixel. Best for bold backgrounds.
  • Noise-Based Motion — Smooth noise makes dots sway and a blob ripple. Best for calm backgrounds.
  • SVG Path Animation — A line drawing draws itself, stroke by stroke. Best for icons and logos.
  • Chromatic Aberration — A word splits into red, green and blue fringes. Best for bold titles.
  • 2.5D / Pseudo-3D — Flat layers slide by different amounts, faking depth. Best for hero scenes.
  • Ray Marching / SDF — A 3D scene drawn only from formulas, circled by a camera. Best for art pages.
  • GPGPU Particle System — Tens of thousands of particles flow on the graphics chip. Best for hero effects.
  • Image Distortion on Hover — The picture ripples and bends around your pointer. Best for portfolio images.
  • Cloth Simulation — A cloth sways in the wind, and you can drag it around. Best for playful pages.
  • Volumetric Smoke — Soft smoke curls upward, drawn as a real 3D cloud. Best for moody backgrounds.
  • Morphing Blob — Blobs melt together, and one drop chases your pointer. Best for hero sections.
  • 3D Flip Card — A card turns over in 3D to show its back. Best for profile and product cards.
  • 3D Carousel — Cards stand in a ring that spins in 3D as you drag it. Best for image galleries.
  • Depth-Map Photo — A flat photo turns 3D as you point: near parts shift more. Best for hero images.
  • Flocking — Birds swirl and turn together as one flock. Best for calm backgrounds.
  • ASCII / Halftone — A moving picture is redrawn with letters or dots. Best for retro and tech looks.
  • 2D Physics — Balls drop where you click, bounce and pile up. Best for playful intros.
  • Liquid Glass — Drag a glass panel and the picture behind it bends at the edges. Best for cards.
  • Holographic Card — A card tilts as you point, and its rainbow foil shimmers. Best for collectibles.
  • Infinite Zoom — The view keeps zooming into pictures inside pictures. Best for page intros.
  • Water Ripple — Ripples spread from your finger and bend the picture below. Best for hero images.
  • Audio Visualizer — Bars dance to the music, from bass to treble. Best for music players.

07 · Ambient & Background · 26 techniques

Passive, looping effects that hold visual interest without demanding attention — gradients, particles, grain, and glows.

Browse all 26 techniques in Ambient & Background
  • Animated Gradient Background — Colors slowly drift across a soft gradient background. Best for hero sections.
  • Mesh Gradient Animation — Blurred blobs of color drift and melt together. Best for landing pages.
  • Aurora / Northern Lights — Blurred bands of light sway like the northern lights. Best for dark backgrounds.
  • Grain / Film Noise Overlay — Fine grain flickers over the page, like old film. Best for editorial sites.
  • Scanline Effect — Dark lines and a sweeping beam imitate an old TV screen. Best for retro sites.
  • Light Leak — Warm light washes in from a corner at random times. Best for photo sites.
  • Starfield / Space Particles — Stars stream toward you out of the dark. Best for space themes.
  • Breathing / Pulsing Glow — A soft glow slowly grows and shrinks, like calm breathing. Best for idle states.
  • Ambient Ripple Effect — Rings spread from a few spots, like drops on a still pond. Best for hero areas.
  • Floating Elements — Small shapes drift slowly, each on its own path. Best for hero backgrounds.
  • Grid / Dot Pattern Parallax — A dot grid shifts gently against your pointer for depth. Best for tech sites.
  • Abstract Geometric Motion — Shapes turn, spread and flow in a calm, endless pattern. Best for music players.
  • Particle Constellation — Drifting dots link up with lines whenever they come close. Best for tech sites.
  • Flow Field — Particles ride invisible currents, leaving fading trails. Best for art pages.
  • Synthwave Grid — A glowing grid rolls toward you under a striped sun. Best for music and games.
  • Matrix Rain — Columns of glowing characters rain down a dark screen. Best for tech themes.
  • Plasma Field — Smooth waves of color flow endlessly, made from math. Best for creative sites.
  • Wave Layers — Layers of waves drift sideways, each at its own speed. Best for hero sections.
  • Snow / Rain — Snow drifts down, or rain falls in streaks, over a dark town. Best for seasonal pages.
  • Fireworks — Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations.
  • Topographic Lines — Lines like those on a hiking map slowly bend and drift. Best for outdoor brands.
  • Light Rays — Soft beams of light fall from above and slowly sweep across. Best for hero intros.
  • Game of Life — Cells live and die by their neighbors, and patterns grow. Best for tech sites.
  • Ken Burns Effect — Photos slowly zoom and pan, then fade into the next. Best for hero slideshows.
  • Fire Effect — Flames flicker and rise as heat climbs and cools. Best for game and event pages.
  • Lightning — Jagged bolts strike from the clouds and light up the sky. Best for dramatic intros.

Design principles

One technique, one folder. One HTML file holds the demo's markup, CSS, and JavaScript, and a README explains it. The page around the demo comes from two shared files, assets/css/demo-page.css and assets/js/demo-page.js. No build step, no frameworks, no external dependencies.

Show, then explain. The demo is the main artifact. Each technique's README supports it.

Technique over tool. GSAP, Framer Motion, and Three.js are mentioned in production notes — they are never the subject of an entry.

Plain words, not code. The pages explain each animation in plain words and give a prompt instead of code. The code is still there for anyone who wants it, in each page's source and its README.

Works for everyone. Every page works on phones, by touch, and with the keyboard (where an effect follows the pointer, the arrow keys move it too), and it respects the reduced-motion setting.

Run it locally

Clone the repository and serve its folder with any static file server, such as the one that comes with Python:

git clone https://github.com/matinmonshizadeh/animation-handbook.git
cd animation-handbook
python -m http.server 8000 --bind 127.0.0.1

Then open http://127.0.0.1:8000/ in your browser. If python is not found, as on many macOS and Linux systems, use python3.

Without a server you can still open any page's index.html straight from the folder: every demo runs, and the links between pages work. Two parts need the server. Each page reads its What it is text and its Similar animations from its README, so opened from disk it shows a link to the README in place of What it is and leaves Similar animations out. And on the home page, a card's Copy prompt button turns into "Open to copy" when pressed; pressing it again opens the animation's page at its prompt, where you can copy it.

Browser support

The handbook is made for current versions of Chrome, Edge, Firefox, and Safari. A few pages depend on a feature that an older browser or some devices lack. This is what each one does without it:

  • WebGL. Eight pages in 3D & Advanced draw with it: 3D Model Orbit, Depth-Map Photo, Fluid Simulation, GPGPU Particle System, Image Distortion on Hover, Ray Marching / SDF, Volumetric Smoke, and WebGL Shader Animation. Without it, Depth-Map Photo moves its layers on a plain 2D canvas instead, and the other seven show a short note in place of the animation. GPGPU Particle System needs WebGL 2 with floating-point color buffers, and shows its note without them.
  • View Transitions API. Where a browser does not have it, the View Transitions API page switches between its pages with a simple fade, whatever transition style and speed you choose.
  • CSS scroll-driven animations. Only Stacking Cards uses them, to shrink each card as the next one covers it. Where they are missing, a small script does the same as you scroll.
  • Frosted glass (CSS backdrop-filter). Glassmorphism Animated and Liquid Glass are built on it, and Scrollspy Navigation, seven Ambient & Background demos, and the top bar of every animation page use it for a light blur behind a menu, a text card, or the bar. Without it, each panel keeps its see-through tint but nothing behind it blurs; the Off choice of Glassmorphism Animated's Frost setting shows that look.
  • Liquid Glass's bend. Liquid Glass also bends the picture at its edges, but only in Chrome, Edge, and other Chromium browsers on a computer or Android; elsewhere it is frosted glass.

Contributing

Contributions are welcome — new techniques, fixes, and improvements. Each animation lives under animations/<category>/<slug>/ with its index.html and README.md, and optionally a preview image. See CONTRIBUTING.md for the authoring guide and CLAUDE.md for the full spec, which is written for AI coding assistants.

Ask questions and share ideas in Discussions. For what's new, see CHANGELOG.md.

If this handbook helped you, a ⭐ makes it easier for others to find.

Credits

The site font is Schibsted Grotesk by The Schibsted-Grotesk Project Authors, under the SIL Open Font License 1.1 — see assets/fonts/OFL.txt.

License

MIT © 2026 Matin Monshizadeh. The font is under the SIL Open Font License (see Credits).