~/talk

Animate All the Things! (With View Transitions API)

Talkat ReactNext 2024 · on Monday, 2024-06-24· [web-platform, web-animation]
github:NettaB
slides:none on file

Demonstrates that the View Transitions API actually captures UI state and orchestrates DOM changes without manual keyframes: uses document.startViewTransition, CSS pseudo-elements and view-transition-name to target elements, shows a photo‑viewer demo and a React pattern (wrap setState) that works. Reveals a major caveat: the API pauses all rendering during a transition so long durations freeze interactivity—good for screen‑level reorganizations, bad for animating every button.

AI-written summary · about

  1. 0:00Introduction
  2. 2:09Animations are challenging
  3. 3:54UI state management
  4. 5:44Demo app setup
  5. 8:13Hooking into View Transitions API
  6. 10:22API captures UI state
  7. 11:44Customizing transitions with CSS
  8. 13:51Performance of long transitions
  9. 15:59When to use the API
  10. 17:03Targeting elements with names
  11. 19:58Integrating with React
  12. 21:44Prefer native solutions
  13. 24:33Encouraging native adoption
  14. 25:58Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.