#541
Animated and static
A sentence with one animated marker-pen highlight and one static highlight.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Animated and static" pattern (@codeatlasdev/ui demo #541, display/highlight) in my app.
Call get_demo({ ids: ["#541"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Emphasizing a key phrase in a headline or paragraph with a marker sweep that falls back to the final state under reduced motion.
Keep these library parts, with the props and tokens the demo uses:
- Highlight from "@codeatlasdev/ui"
Behaviour to keep:
- `<Highlight animated>editorial pages</Highlight>` sweeps in on mount
- `<Highlight>static marks</Highlight>` is drawn fully with no animation
- The paragraph uses `--ca-font-size-h4`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Highlight
@codeatlasdev/ui
How it is built
- `<Highlight animated>editorial pages</Highlight>` sweeps in on mount
- `<Highlight>static marks</Highlight>` is drawn fully with no animation
- The paragraph uses `--ca-font-size-h4`
Related
Loading source.