Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.99 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.99 KB

View Transition API Demo (MPA)

This is a demo of using the View Tranisions API in MPA page navigation patterns. For example, create an app launcher like transition and prerender the next page while showing a bridge state. Note: As of Jun 8 2023, this MPA view transition requires chrome://flags#view-transition-on-navigation to be enabled.

GIF

Live demo

How?

Food for thought... for example:

vt-under-the-hood

In between the navigation,

  • transition to a “bridge state” highlighting the shared element
  • boot-up the next page behind the scenes (i.e. pre-* techniques)
  • …then, conduct hard navigation, instantly & seamlessly

Check out the View Transition article for more details:

Disclaimer

This code base is built for demo purpose only (non production ready code). Please reference as one example of how View Transitions API can be used.

Credits

Thank you for your amazing & beautiful photos @ unsplash.com !


License Apache-2.0