Skip to main content

View Transitions API Generator

Build smooth page transition animations using the CSS View Transitions API. Select a transition type, configure timing, and get ready-to-paste CSS keyframes and JavaScript code.

✓ 60K+ developers trust DevPlaybook ✓ Runs 100% in your browser ✓ No sign-up required

Frequently Asked Questions

What is the View Transitions API?▼

The View Transitions API lets you create smooth animated transitions between page states or navigations — without JavaScript animation libraries. Call document.startViewTransition() with a callback that updates the DOM, and the browser automatically captures before/after snapshots and animates between them.

What is view-transition-name?▼

view-transition-name is a CSS property that tags an element for a 'shared element transition'. Give the same name to an element on two different pages and the browser will morph one into the other — automatically calculating the position, size, and shape change. Perfect for hero images, cards, and navigation transitions.

What are ::view-transition-old and ::view-transition-new?▼

These are CSS pseudo-elements the browser creates during a transition. ::view-transition-old represents a snapshot of the element before the change; ::view-transition-new shows the element after. You can apply any CSS animation to them to customize the effect.

Does the View Transitions API work across pages (MPA)?▼

Yes! Chrome 126+ supports cross-document (multi-page) view transitions. Add @view-transition { navigation: auto; } to your CSS and transitions happen automatically on navigation — no JavaScript needed for basic use.

What is the fill mode in animations?▼

The fill mode controls what happens before/after an animation. 'both' applies the starting keyframe before the animation and holds the end state after — usually what you want for transitions. 'forwards' only holds the end state; 'backwards' applies the start; 'none' reverts after completion.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →