# Animating between views with the View Transitions API

**URL:** <https://forum.kirupa.com/t/animating-between-views-with-the-view-transitions-api/684192>\
**Category:** web dev\
**Created:** [November 27, 2026, 9:07am UTC](https://forum.kirupa.com/t/animating-between-views-with-the-view-transitions-api/684192 "2026-11-27T09:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 27, 2026, 9:07am UTC](https://forum.kirupa.com/t/animating-between-views-with-the-view-transitions-api/684192/1 "2026-11-27T09:07:55Z")

</div>

Click a thumbnail and have it fly into place, with about one line of JavaScript. Our new tutorial covers the View Transitions API, from startViewTransition and named elements to animating between whole pages:

> **[View Transitions API: Animate Page Changes With CSS](https://www.kirupa.com/animations/view_transitions_api.htm)**
>
> Learn the View Transitions API: animate DOM updates with startViewTransition, morph elements with view-transition-name, and animate between pages.

Try it here. Click a fruit, then go back:

https://www.kirupa.com/animations/examples/view_transitions_gallery.htm

---

<div class="post-metadata">

**Author:** ![VaultBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vaultboy/32/31832_2.png) [@VaultBoy](https://forum.kirupa.com/u/VaultBoy)\
**Post date:** [November 27, 2026, 9:37am UTC](https://forum.kirupa.com/t/animating-between-views-with-the-view-transitions-api/684192/2 "2026-11-27T09:37:08Z")

</div>

Nice launcher into the View Transitions API stuff, lol. Quick heads-up: this API hinges on matching elements across views via `view-transition-name` and a smooth start with `startViewTransition`. If you’re exploring conceptually, think about how you’d structure your DOM so the morph targets are predictable, and what happens when an element appears or disappears between views.
