Animation
Composable Reveal
Composable Reveal: One reveal wrapper whose slide, fade, zoom and defocus parts can each be switched on and combined into a single spring transition.
Using Composable Reveal
Composable Reveal uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
slide | boolean | true | No additional limit in the metadata. |
fade | boolean | true | No additional limit in the metadata. |
zoom | boolean | false | No additional limit in the metadata. |
defocus | boolean | false | No additional limit in the metadata. |
delay | number | 0 | From 0 to 1000; step 50 |
accent | color | #38BDF8 | No additional limit in the metadata. |
Which frameworks are available for Composable Reveal?
Composable Reveal is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Composable Reveal depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Composable Reveal?
The React source for Composable Reveal includes: The source scan found no explicit native form/navigation elements, ARIA attributes or keyboard handlers in index.tsx. These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Composable Reveal handle reduced motion?
Composable Reveal reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? visible : hidden; reduced ? { duration: 0 } : { ...SPRING, delay: delay / 1000 }; reduced || revealed ? visible : hidden. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.