Frontend First cover image

Frontend First

View Transitions in React

Jun 12, 2024
53:21

Ryan tells Sam about his experiments with using the new View Transitions API in a React photo gallery app. He talks about how he likes the flexibility of the API, how to think about integrating it into any client-rendered app regardless of the framework, and how he used a Promise with an Effect to tie a View Transition to a React Transition.

Topics include:

  • 0:00 - Intro
  • 1:11 - What it’s like to integrate View Transitions with React
  • 7:30 - How View Transitions work
  • 16:09 - Building a gallery that animates photos across page navigations
  • 19:38 - How to use startViewTransition for enter/update/exit animations
  • 26:52 - Using a Promise to link a View Transition to a React Transition
  • 43:02 - Do View Transitions replace framework-specific animation libraries?
  • 45:17 - Using DevTools to preview and tweak transitions

Links:

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode