Skip to content

uskay/vt-demo-mpa

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published