A title that stays pinned while the page scrolls, as a product window peeks under it, then rises to full size while the title fades, lifts and shrinks. It falls back to a plain stack under reduced motion, on short screens and before JavaScript.
- Product launch page
- Landing page opening
- Feature reveal with a live screen
- Video-led hero
Examples
Scroll inside the preview
With a video
Scroll inside the preview
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- eyebrow
ReactNode- A short line above the title, in the accent colour.
- title
ReactNode- The heading (an h1). It is the part that fades and lifts.
- description
ReactNode- The lead under the title.
- actions
{ label, href?, onClick? }[]- Buttons under the lead; the first is primary. They are measured, so the panel never starts over them.
- media
ReactNode- What rises over the title: an image, a video (MediaFrame) or live content. It fills the panel, with a soft fade at the bottom edge.
- windowTitle
string[]- Breadcrumb in the window bar, e.g. ["Relaybox", "Agent team"]. The three dots always show.
- scrollLength
number- Default
1 - Extra scroll while the stage is pinned, in viewport heights. The title finishes at 35% of it and the window at 50%, then it holds.
- className
string- Added to the section.
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | ReactNode | - | A short line above the title, in the accent colour. |
| title | ReactNode | - | The heading (an h1). It is the part that fades and lifts. |
| description | ReactNode | - | The lead under the title. |
| actions | { label, href?, onClick? }[] | - | Buttons under the lead; the first is primary. They are measured, so the panel never starts over them. |
| media | ReactNode | - | What rises over the title: an image, a video (MediaFrame) or live content. It fills the panel, with a soft fade at the bottom edge. |
| windowTitle | string[] | - | Breadcrumb in the window bar, e.g. ["Relaybox", "Agent team"]. The three dots always show. |
| scrollLength | number | 1 | Extra scroll while the stage is pinned, in viewport heights. The title finishes at 35% of it and the window at 50%, then it holds. |
| className | string | - | Added to the section. |
ScaledScreen
- children
ReactNode- A whole app page, laid out at width x height. It is shown, not used: it takes no pointer input.
- width / height
number- Default
1280 / 800 - The size the page is laid out at, then scaled to the width of the box.
- compact
ReactNode- A phone layout of the same page, shown at 1x in a tall box when the box is narrower than compactBelow.
- compactBelow
number- Default
640 - Box width in px under which compact shows instead of the scaled page.
- compactAspect
string- Default
"9 / 19" - Aspect ratio of the box in compact mode.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | - | A whole app page, laid out at width x height. It is shown, not used: it takes no pointer input. |
| width / height | number | 1280 / 800 | The size the page is laid out at, then scaled to the width of the box. |
| compact | ReactNode | - | A phone layout of the same page, shown at 1x in a tall box when the box is narrower than compactBelow. |
| compactBelow | number | 640 | Box width in px under which compact shows instead of the scaled page. |
| compactAspect | string | "9 / 19" | Aspect ratio of the box in compact mode. |
What it handles
- 01Pins the title stack while the page scrolls, and reads progress from the section's own window, so it works in a preview frame as well as in the top page.
- 02Fades, lifts and shrinks the title to 92% over the first third of the scroll, while the window rises from a peek under it and grows from 95% to full size by the halfway mark.
- 03Measures the real height of the title, buttons included, so the panel starts below the actions and never covers a button at rest.
- 04Falls back to a plain stack of title then panel when the title nearly fills the viewport, under reduced motion, and before the script has run.
- 05Drives every transform from one CSS variable written once per frame, so scrolling renders no React and moves only transform and opacity.
- 06Fades the bottom edge of the panel with a soft mask, so a tall screen shown inside it never ends on a hard cut.
States
- At rest
- The title shows in full and the window peeks below it, a little smaller than its final size
- none
- Scrolling
- The title fades, lifts and shrinks while the window rises and grows, both following the scroll 1:1
- 0ms, follows the scroll
- Covered
- The window sits at full size under the gone title and holds until the pin releases
- none
- Short screen
- The title and panel stack, and the page scrolls normally
- none
- Reduced motion
- The stacked layout, with nothing pinned or moving
- 0ms
| State | What moves | Timing |
|---|---|---|
| At rest | The title shows in full and the window peeks below it, a little smaller than its final size | none |
| Scrolling | The title fades, lifts and shrinks while the window rises and grows, both following the scroll 1:1 | 0ms, follows the scroll |
| Covered | The window sits at full size under the gone title and holds until the pin releases | none |
| Short screen | The title and panel stack, and the page scrolls normally | none |
| Reduced motion | The stacked layout, with nothing pinned or moving | 0ms |
Works with
When to use
When to use
- The opening of a launch or product page where one live screen or a video is the proof.
- A reveal that should feel like the page lifting to show the product, not a carousel.
When not to use
- A page with no media to show: a plain hero reads faster: use Hero.
- A long page of many sections: one pinned stage per page is enough.
- Product UI: pinned, scroll-driven motion belongs to marketing pages.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Scroll-over Hero to my app and wire it to my own data.
- I need the opening of a launch or product page where one live screen or a video is the proof. Set that up with the Knowns UI Scroll-over Hero.
- Which Scroll-over Hero props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "scroll-over-hero" }) and search_docs({ query: "scroll-over hero" }). Pro props, full examples and source come back once your license key is in the MCP config.