Skip to content
Astro Eclipse
Esc
↑↓navigate↵open⌘Jpreview
On this page

Browser support

Which browsers run the animation, what happens without it, and what has been checked.

The animation needs document.startViewTransition. Without it the theme still changes, instantly. The theme logic itself (attribute, storage, system) uses localStorage, matchMedia and custom events, which every current browser has.

Browser startViewTransition Behavior without it Checked on
Chrome 111 (MDN) Instant switch Chromium 156 (Playwright), 2026-11-03: all 7 effects seen mid-transition in screenshots; 18 end-to-end checks pass
Edge 111 (MDN) Instant switch unverified
Safari 18 (MDN) Instant switch WebKit 27.2 (Playwright), 2026-11-03: 18 end-to-end checks pass and the animations start; the look of each effect is unverified (screenshots only show the final theme)
Firefox 144 (MDN) Instant switch unverified (the Playwright Firefox build would not start on the test machine)

“Instant switch” is what the code does when the function is missing: it applies the theme and fires eclipse:change, with no animation. That path has not been run in the listed browsers.

Feature detection

Astro Eclipse tests typeof document.startViewTransition === 'function' on every call. You do not need your own check. If you want to show something different when animation is unavailable:

const canAnimate = typeof document.startViewTransition === 'function'

Other reasons for no animation

Reduced motion, a zero duration, an unknown effect name and an active ClientRouter navigation also give an instant switch. They are listed under transitions.

Related: accessibility, clip-path based effects.

Was this page helpful?