Buttons
Light sweep effect
Light sweep effect: A diagonal band of light that sweeps once across a button, triggered by hover, tap, or a repeating timer.
Using Light sweep effect
Light sweep effect uses the inline preview frame with a 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 |
|---|---|---|---|
trigger | select | hover | Options: hover, tap, continuous |
duration | number | 1200 | From 400 to 2400; step 100 |
angle | number | -15 | From -45 to 45; step 5 |
accent | color | #FF6A1F | No additional limit in the metadata. |
Which frameworks are available for Light sweep effect?
Light sweep effect 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 Light sweep effect depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Light sweep effect?
The React source for Light sweep effect includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Light sweep effect handle reduced motion?
Light sweep effect reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: effectiveDuration: prefersReducedMotion ? Math.min(duration, 200) : duration. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.