# Transition API > **Experimental.** The transition API may change in minor releases. `vfx.addTransition` animates an element from its old content to its new content with a shader. Use it for tab panels, carousels, or page transitions in a single-page app. A run works like this: 1. VFX-JS snapshots the element's current content. 2. Your callback changes the DOM. 3. VFX-JS captures the new content. 4. A transition shader mixes the snapshot and the new capture over `duration`. The element is plain DOM at rest. VFX-JS wraps it only while a run is in flight. With html-in-canvas the capture uses `drawElementImage`; without it, VFX-JS falls back to dom-to-canvas, a workaround that misses some content (pseudo-elements, web fonts, ``, `