Scroll titlePro
A section title that comes in as it scrolls into view: blur, word, line, tracking or wipe; once, or again on every entry with a quick fade out.
oxyn add scroll-titleEvery run, start to finish
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- A section title that comes in as it scrolls into view (host-observed, e.g. 45 % visible): blur (default; opacity leads, blur clears next, the transform settles last), word and line (rise from a clip; line takes explicit lines), tracking (letter spacing opens), wipe (uncovers left to right).
- With once = false it hides with a quick fade and plays again.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Scroll title is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add scroll-titleUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Blur
Opacity, then blur, then transform.
Every run, start to finish
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Word
Words rise from a clip.
Every run, start to finish
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Line
Explicit lines rise.
Every run,start to finish
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Tracking
Letter spacing opens.
Every run, start to finish
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Wipe
Uncovers left to right.
Every run, start to finish
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ScrollTitle
| Prop | Type | Default | Description |
|---|---|---|---|
textrequired | String | — | Title. |
variant | String | "blur" | `blur` · `word` · `line` · `tracking` · `wipe`. |
tag | String | "h2" | `h1` · `h2` · `h3`. |
lines | Vec<String> | Default::default() | Explicit lines for `line`. |
shownrequired | bool | — | In view (host-observed, e.g. 45 % visible). |
once | bool | true | Reveal only the first time. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| — | Not interactive |
Accessibility
- A real heading element with the full title as its label.
From the spec
- A real heading with the full title as its label.
Motion & interaction
Timing
- Reduced motion: no rise, blur or stagger; labels and values swap instantly (slot reels land at once, the shimmer band stops and the text stays muted).
Responsive behaviour
- Lines wrap; the line variant keeps explicit breaks.
Edge cases (spec)
- Lines wrap.
Notes for AI
- Import
ScrollTitlefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - There is no GPUI version yet; use the Dioxus component.
- Props to set first:
text,shown. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.