Text effects
Shimmer sweep text
Shimmer sweep text: A line of text where each letter brightens and dims in turn, sending a band of light travelling along the phrase on a loop.
Using Shimmer sweep text
Shimmer sweep text uses the card 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 |
|---|---|---|---|
text | text | Reading the archive | Up to 40 characters |
duration | number | 1.2 | From 0.4 to 3; step 0.1 |
restDelay | number | 0.8 | From 0 to 3; step 0.1 |
highlight | color | #F5C542 | No additional limit in the metadata. |
wave | boolean | false | No additional limit in the metadata. |
Which frameworks are available for Shimmer sweep text?
Shimmer sweep text 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 Shimmer sweep text depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Shimmer sweep text?
The React source for Shimmer sweep text includes: attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Shimmer sweep text handle reduced motion?
Shimmer sweep text reads the motion preference in its React source through useReducedMotion(). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.