The website animation examples worth copying fall into seven types: micro-interactions on buttons and links, scroll-driven reveals, page and state transitions, product video loops, vector illustrations (Lottie), WebGL and 3D scenes, and loading states. Each has a cheapest technique that does the job: CSS transitions for hover and press, CSS scroll-driven animations for reveals, the View Transitions API for moving between states, GSAP or Motion for choreography CSS can't express, Lottie for designed illustrations, and WebGL only when the motion is the product. Below are real sites using each, what they do, how they're built, and the performance and accessibility rules that decide whether the motion helps or costs you.
I'm a design engineer: I design websites and products and build them in production code, so I judge an animation by the screen and by the code under it. This guide is part of my design engineering work.
Website animation examples by type
I checked every example below on 10 November 2026, either by reading the site's served HTML or the company's own write-up.
| Type | Real example | Technique | Cost to the page |
|---|---|---|---|
| Micro-interaction | Tokopedia's product thumbnail fade | View Transitions API | Very low |
| Scroll-driven reveal | redBus product cards fly in; Tokopedia's sticky bar | CSS scroll-driven animations | Low, runs off the main thread |
| State and page transition | redBus login, Policybazaar help tips | View Transitions API | Low |
| Product video loop | Apple AirPods Pro page, GitHub homepage hero | Muted inline video, with play or pause controls | Medium (bytes) |
| Vector illustration | Airbnb, which created Lottie | Lottie (After Effects to JSON) | Medium (library plus JSON) |
| WebGL scene | GitHub's pull request globe | three.js and WebGL | High |
| Choreographed sequences | Text, timelines, staggered scenes | GSAP or Motion | Medium (JavaScript) |
Micro-interactions: small feedback, big effect
A micro-interaction confirms that something happened: a button presses in, a thumbnail swaps, a heart fills. Tokopedia, the Indonesian marketplace, added a fade when shoppers switch between product thumbnails, using startViewTransition with a fallback to an instant swap where the API isn't supported. A Tokopedia engineer told Chrome's team it gave "a more pleasant fading transition" for little effort.
For hover and press states, plain CSS is enough:
.button {
transition: transform 160ms ease-out;
}
.button:active {
transform: scale(0.97);
}Keep these under about 200 milliseconds and on transform. Feedback that lags behind the click feels slower than no feedback.
Scroll-driven reveals, now in every engine
Scroll-driven animation ties progress to scroll position instead of time. Chrome's case study by Swetha Gopalakrishnan and Saurabh Rajpal describes two real uses. redBus, the Indian bus booking site, uses a fly-in effect for product cards on its home page and an image reveal in its mobile photo gallery, animating opacity and clip-path on a view progress timeline. Tokopedia shows and hides its top sticky bar with a scroll() timeline over a 20px to 70px range, and fades products in and out on the product page. Tokopedia's engineer reported cutting "up to 80%" of the lines of code and average CPU use while scrolling falling from 50% to 2%.
The reason is architectural: these animations can run off the main thread, where scroll event listeners can't. Support caught up this autumn. webstatus.dev lists Chrome 115, Safari 26 and Firefox 159, which made scroll-driven animations Baseline on 27 October 2026.
@keyframes reveal {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
.card {
animation: reveal linear both;
animation-timeline: view();
animation-range: entry 0% cover 30%;
}
}
}The MDN guide to scroll-driven animations covers scroll(), view() and animation-range. Wrapped like this, older browsers and people who reduce motion simply see the cards.
State and page transitions
The View Transitions API snapshots the old state and the new one and animates between them. redBus uses it for a fade and slide when someone taps the login icon on the home page, with named elements and custom scale animations. Policybazaar applies it to help tips such as its "Why buy" call to action and sets the root transition to 0.4 seconds; its tech lead said it removed repetitive CSS and JavaScript for managing animation states. Both are in the same Chrome case study.
Same-document transitions are Baseline since 14 October 2025. Cross-document transitions, between two normal pages, work in Chrome from 126 and Safari from 18.2 but not yet in Firefox, per webstatus.dev. I've covered the timing, the React and Next.js side and the support table in my View Transitions API guide.
Product video loops with a pause button
Many of the most admired product pages animate with video, not code. I read Apple's AirPods Pro page on 10 November 2026: the hero animation is a <video> that is muted, inline and set to preload="none", with role="img" and an aria-label describing what plays. Each animation has a labelled control, such as "Play battery life animation", and the page's sections are marked up as named animation scroll groups.
GitHub's homepage does the same in its hero: a muted, inline video with preload="metadata" and a hidden text description, "Copilot reviews proposed code changes", so the animation has words for people who can't see it. Further down, its moving customer logo bar has a button labelled "Pause animation". That button isn't decoration. It's what WCAG asks for, as the accessibility section below explains.
Video suits motion that is filmed or rendered (a product turning, a 3D render), because no script has to compute frames. The cost is bytes, so load it late and never make it the only thing above the fold.
Lottie: designed illustrations that move
Airbnb created Lottie, which renders Adobe After Effects animations exported as JSON with the Bodymovin plugin, on the web, iOS, Android and React Native. It suits icons, empty states and explainers drawn by a motion designer. Check the file size of each JSON and pause it when it scrolls out of view.
WebGL and 3D: when motion is the message
GitHub's engineering blog explains how it built the homepage globe (Tobias Ahlin, December 2020): three.js and WebGL draw open pull requests as spikes and merged ones as arcs. The write-up is a lesson in restraint: antialiasing off for weaker devices, a static SVG placeholder that crossfades to the canvas once the first frame is ready, and quality that steps down when the frame rate can't hold 55.5 frames per second over the last 50 frames. If you commission a WebGL hero, ask for that plan.
Choreography: GSAP and Motion
When an animation has many steps (split text, a pinned timeline, a sequence that responds to scroll and input), CSS gets unwieldy. GSAP is the long-standing choice, and Webflow made all of it free, including the formerly paid plugins, in April 2025. Motion, previously Framer Motion, is the usual pick in React, Vue and JavaScript apps. Both add JavaScript to the page, so I reach for them only when CSS can't express the sequence.
Performance: what motion costs and how to keep it cheap
Animate transform and opacity. web.dev's animations guide says to restrict animations to those two properties to keep them on the compositing stage, and to use will-change sparingly, only when you hit a problem. Animating width, top or box-shadow makes the browser lay out or paint every frame.
Never fade in the largest element. web.dev's Largest Contentful Paint article lists "elements with an opacity of 0" among those excluded from LCP. A hero heading or image that starts invisible can't count until it shows, and if JavaScript starts the fade, LCP waits for the script. A good LCP is 2.5 seconds or less. I let the hero render in its final state and animate what sits around it.
Watch interaction responsiveness. Interaction to Next Paint measures how fast the page answers clicks, taps and key presses; 200 milliseconds or less is good. Animation libraries that run on the main thread, or scroll listeners firing every frame, compete with those interactions. My guide to improving INP in Next.js shows how to find the long tasks.
Pause what isn't visible. Loops, Lottie files and WebGL scenes should stop when they leave the viewport or the tab is hidden.
Accessibility: reduced motion, pause controls and flashing
`prefers-reduced-motion` reports the operating system setting (Reduce motion on macOS and iOS, Remove animations on Android, Animation effects on Windows 11). The W3C notes that movement on scroll can trigger vestibular disorders, with dizziness, nausea and headaches, so I treat this as a requirement, not a nicety:
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}That reset is a safety net. Better is to design the reduced version: swap a slide for a fade and keep feedback that carries meaning. In JavaScript, check window.matchMedia("(prefers-reduced-motion: reduce)") before starting GSAP or WebGL, and in React use Motion's `reducedMotion` option or `useReducedMotion` hook.
Three WCAG 2.2 success criteria apply:
- 2.2.2 Pause, Stop, Hide, Level A. Moving content that starts automatically, lasts more than five seconds and sits beside other content needs a way to pause, stop or hide it. That's the job of Apple's play controls and GitHub's logo bar button.
- 2.3.3 Animation from Interactions, Level AAA. Motion triggered by interaction can be disabled unless essential. Its sufficient techniques include the
prefers-reduced-motionquery in CSS and JavaScript. - 2.3.1 Three Flashes or Below Threshold, Level A. Nothing flashes more than three times in any one second.
When animation hurts conversion
Motion pulls attention whether or not it deserves it. The Nielsen Norman Group's article on animation in UX (Page Laubheimer, January 2020) says users are "prone to be distracted by any type of motion (meaningful or not)" and warns against animations that only fill time. Its study of auto-forwarding carousels describes a user who missed her target, set in large type at the top of the page, because the panel rotated away. The patterns I remove first:
- Entrance animations on the headline, the offer or the call to action. They delay the thing the visitor came for and can hurt LCP.
- Scroll hijacking, where the page decides how far a flick moves. It breaks the one interaction everyone already knows.
- Auto-rotating carousels without a pause control.
- Several things moving at once, so none of them reads.
- Long page transitions on actions people repeat. Under 300 milliseconds, or none.
The test I use: if you removed the animation, would anyone lose information? If not, it's decoration, and decoration has to be cheap and quiet.
Frequently asked questions
What are the most common types of website animation?
Micro-interactions on buttons and links, scroll-driven reveals, page and state transitions, product video loops, Lottie illustrations, WebGL scenes and loading states. Most sites need the first three and little else.
Do website animations slow down a site?
They can. CSS transitions on transform and opacity are close to free. Large JavaScript libraries, WebGL and heavy video cost bytes and main thread time, and a fade on the hero can delay Largest Contentful Paint.
Should I use CSS or JavaScript for web animations?
CSS for hover states, reveals and simple transitions, including scroll-driven ones, which are now in every major engine. JavaScript (GSAP or Motion) when you need sequencing, physics or animation tied to complex input.
How do I make website animations accessible?
Honour prefers-reduced-motion, give anything that moves on its own for more than five seconds a pause control, never flash more than three times a second, and keep focus and meaning intact when motion is off.
Is scroll animation bad for SEO?
Not by itself, as long as the text is in the HTML and visible without scrolling tricks. The risk is content hidden at opacity 0 until a script runs, and a hero that fades in, which hurts LCP.
Can you design and build website animations for my site?
Yes. I design the motion with the rest of the page and build it in TypeScript, React and Next.js, with reduced motion and performance budgets included. See my design engineering service.
Sources and method
I read every source below on 10 November 2026. For Apple and GitHub I read the served HTML of the live pages, so anything added later by scripts may not appear in my description. Company results quoted from Chrome's case studies are as reported by those companies.
- Chrome for Developers, Scroll-driven animations case studies, checked 10 November 2026: developer.chrome.com
- Chrome for Developers, View transitions case studies, checked 10 November 2026: developer.chrome.com
- webstatus.dev, Scroll-driven animations and Cross-document view transitions, checked 10 November 2026: webstatus.dev
- MDN, CSS scroll-driven animations, checked 10 November 2026: developer.mozilla.org
- MDN, View Transition API, checked 10 November 2026: developer.mozilla.org
- MDN, prefers-reduced-motion, checked 10 November 2026: developer.mozilla.org
- Apple, AirPods Pro page, HTML read 10 November 2026: apple.com
- GitHub homepage, HTML read 10 November 2026: github.com
- GitHub Blog, How we built the GitHub globe, checked 10 November 2026: github.blog
- Airbnb, lottie-web README, checked 10 November 2026: github.com
- Webflow Blog, Webflow makes GSAP 100% free, checked 10 November 2026: webflow.com
- Motion, Create accessible animations in React, checked 10 November 2026: motion.dev
- web.dev, Animations guide, checked 10 November 2026: web.dev
- web.dev, Largest Contentful Paint, checked 10 November 2026: web.dev
- web.dev, Interaction to Next Paint, checked 10 November 2026: web.dev
- W3C, Understanding SC 2.2.2, 2.3.1 and 2.3.3 (WCAG 2.2), checked 10 November 2026: w3.org
- Nielsen Norman Group, The Role of Animation and Motion in UX, and Auto-Forwarding Carousels, checked 10 November 2026: nngroup.com
If you want motion on your site that helps people act instead of slowing them down, book a free 30 minute intro call. After it, you get a written scope and one fixed quote.
Tags: Website animation, Motion design, Web performance, Accessibility, Design engineering


