Layouts

Sticky Media

A sticky frame with chapters: the frame stays on the left, chapters pass on the right, and the frame changes as the reader reaches each. Pure CSS on named view timelines. For product stories, tours and long reads.

What you can change

  • heading and lead — the title and subtitle above the layout; without them — a ghost
  • items — slots in order: 01 frame (media per chapter via slots 02–04), 02 chapter, 03 chapter, 04 chapter; title/text/value/media
  • media — your own frame, video or a background from the Background category (surface-*) inside a slot, under the text

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/layout-006?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

One file, zero dependencies, JS only for the cursor light. A 5/6 grid from 56rem (data-side=right swaps the order), the stage is sticky with a stack of three layers in one grid-area; each chapter declares a view-timeline-name, body collects them with timeline-scope, layer k animates on chapter k's timeline (entry 20–80% range). Layer k media comes from items[k].media, else items[0].media. Without support the first layer is visible. The tile cascade is off. Slots: 01 frame (media per chapter via slots 02–04), 02 chapter, 03 chapter, 04 chapter — items[i] with title/text/value/media, without them — a ghost. Numbers (numbers) show which slot goes where. Entrance is its own, see above; hover — cursor light and edge highlight at the pointer. Palette --vibeui-layout-006-* with light-dark, container queries, DOM order = reading order.

Tags

  • layout
  • sticky
  • scrollytelling
  • chapters
  • media
  • split
  • story
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…