Cross-document View Transitions

A collection of demos to explore the View Transition API. The focus is on cross-document view transitions.

The Demos

Carousel

A carousel showing a set of photographs of cities. We can make each page a single item in the carousel when we utilise cross-document view transitions.

screenshot of the carousel showing the first item. It has a title
          : Cape Town. It shows a picture of Cape Town coastline. It has a next arrow.
  1. Basic: The default crossfade transition between 2 pages. The animation-duration is set to 2 seconds to show the effect clearly.
  2. Shrink animation: The animation shrinks the source page out of view, and expands the target page into view.
  3. Skip view transition: Give the user the choice to disable view transitions through a checkbox.
  4. Slide animation: Slide to the right or left depending on if the next or previous link was clicked.

Profiles

List of profiles, with overview - detail navigation

Video Zoom

Make a video element bigger while it keeps playing.

Circle

A circular clip path reveal from one view/page to the other.

Off the Beaten Path

A more complex demo with multiple elements animating in sequence

Sortable

List of sortable items inside a scrollable container