Skip to content

Scroll-jack by Choice

A pinned story that only pins once you switch it on, inside its own box. Next and Back work either way, Escape releases the scroll instantly, and the page you are reading is never hijacked.

230

What you should hear: Tab reaches the control, Enter or Space activates it — and every state change is announced in the same words the page shows.

MIT licensev1.0.03.1 KB gzipzero dependenciesby Motif Studioadded 2026-09-10review due 2026-12-09
Live playground — drag, click, hoversandboxed previewsample copy

Three-step story

Step 1

Sketch

Three boxes, one accent colour. Nothing else survives the first review.

Step 2

Build

The hero ships first, then the pricing band, then the FAQ nobody asked for.

Step 3

Ship

Deploy, watch the first hour, and keep the changelog entry honest.

Scroll pinning is off. This box scrolls like any other box.

The pinning happens inside this box and only after the switch is on: the page you are reading keeps its own scroll, the buttons work whether or not pinning is enabled, and Escape gives the scroll straight back.

Ambience
vibes

Ambience is a live light wash over the preview. Full palette re-theming of every demo arrives with Theme Studio (Pro).

deps: zeroJSX + TailwindMIT · original
scroll-pin.tsx
// 1) install
//   npm i @motifui/cli && npx motifui add scroll-pin
// 2) import where you need it
import { Component } from "@motifui/scroll-pin";

export function Demo() {
  return <Component theme="inherit" className="w-full" />;
}

Snippet provenance

lines 1–8 · v1.0.0
v1.0.0Motif Studio2026-09-10the only version the catalog records for this asset

No changelog entry mentions “Scroll-jack by Choice”, so the catalog records a single version for it.

Every line above is attributed to the single version this catalog records — we keep no per-line history, so no per-line attribution is invented. See the provenance page for the rule and the gaps.

Review notes · anchored to code lines

Threads attach to a line number in this asset's snippet, so a remark about the focus trap stays next to it.

demo · stored in this browser

Loading notes…

The snippet on this page is 8 lines long, so anchors run 1–8. Notes are per-asset and per-browser; a shared review thread is a server feature, and this panel is the local stand-in that proves the anchoring works.

Dependency-aware copy: zero packages to install — paste and run. All markup is original Motif UI content (MIT).

Course rail — understand it before you ship it

Theme Studio preview

Theming example — two token themes

Assets are token-driven (100% design-token driven). Here the same scene runs under two theme presets from the token sheet.

Midnight / violet

Three-step story

Step 1

Sketch

Three boxes, one accent colour. Nothing else survives the first review.

Step 2

Build

The hero ships first, then the pricing band, then the FAQ nobody asked for.

Step 3

Ship

Deploy, watch the first hour, and keep the changelog entry honest.

Scroll pinning is off. This box scrolls like any other box.

The pinning happens inside this box and only after the switch is on: the page you are reading keeps its own scroll, the buttons work whether or not pinning is enabled, and Escape gives the scroll straight back.

--accent 262 · dark surfaces

Bone / amber

Three-step story

Step 1

Sketch

Three boxes, one accent colour. Nothing else survives the first review.

Step 2

Build

The hero ships first, then the pricing band, then the FAQ nobody asked for.

Step 3

Ship

Deploy, watch the first hour, and keep the changelog entry honest.

Scroll pinning is off. This box scrolls like any other box.

The pinning happens inside this box and only after the switch is on: the page you are reading keeps its own scroll, the buttons work whether or not pinning is enabled, and Escape gives the scroll straight back.

--accent 40 · paper surfaces

90-second read

Usage recipe — where this fits

Assemble it between your own header and footer — sections are the middle of the page, where information architecture lives.

Swap the demo copy for real content first, then reduce: cut decorative blocks until the section survives on its information alone.

belongs in sectionsscroll behaviourclick behaviourkeyboard behaviour

Cost honesty

Performance note

3.1 KB gzipone-time layouttext and cards paint once; the cost is in image weight and font loading, not the structure.

Cheaper alternative — the minimal variant drops the decorative layers and keeps the content hierarchy.

What it needs

Browser support strip

CSS Gridflexboxcustom propertiescontainer queries (optional)all evergreen browsers

No polyfills ship with the asset — if a listed feature is missing in a target browser, the graceful fallback is the static layout.

prefers-reduced-motion

Reduced-motion fallback

This asset is not motion-first, so reduced-motion mainly affects its decorative extras (reveals, hovers). The content layer never depends on motion to be readable.

Pressable step-through

Keyboard walk demo

Step through what a keyboard user experiences with this asset.

1

Tab into the section via the skip link or heading anchor

Auto-suggested

Composition map — what pairs well

One original micro-case

Inspiration context

The pricing page that stopped lying

A pricing section with three tiers and no indication of which one people actually chose produced analysis paralysis. Adding one honest 'most chosen' chip — not a fake 'popular' badge, but a real count — lifted conversions by 8% and cut support questions about tier differences.

Written in-house — no screenshots, no borrowed imagery. The pattern, not the pixels.

Every version, why

Changelog — this asset

v1.0.02026-09-10

Current release — this page documents the asset as shipped.

v1.0.02026-08-18

Token pass: colours and radii moved to the design-token sheet; a11y score raised to the current bar.

v0.1.02026-07-02

Initial release to the library — original markup, MIT licensed.

30-day sparkline

Copy history

230copies this month

Sample series from this asset's usage fingerprint · last 12 days shown.

Future queue

Community remixes

Queue opens after launch. Remixes arrive as alternate versions of this asset — same job, different voice — submitted by users and audited by the studio before they appear beside the original.

0 remixes yetaudited by studiocredit + link back to the remixer

Star / favourite

Save this asset

Your collection is stored in this browser (localStorage) — no account needed.

Build a page around it

Pairs well with a prompt

This asset belongs inside a bigger build — here is the prompt that would generate a page containing it:

Print-inspired web — a magazine spread that scrolls

Editorial spread · Folio rules · Ink logic

featured

Exact tree

Bundled dependencies — disclosed

scroll-pin.tsx0.2 KB raw · ~1 KB gzip
(no runtime dependencies)the CSS ships with the snippet

Full snippet ≈ 0.3 KB raw, ~1 KB gzip — before any framework you already load.

Download

Export as single file

Grab the asset as one file, ready to paste into your project.

Files are generated in your browser from the snippets on this page — nothing leaves the tab.

Scale, not clutter

Sizing system — three densities

Density is a token decision, not a per-page override — pick one density per product surface and hold it. Active: Default.

Runnable copy

Open in a sandbox

Opens this asset in a new tab with its stylesheet injected — a real, editable HTML document in your browser. No account, no upload.

If the tab is blocked, use the single-file export instead — same content, saved locally.

Written version first

Tutorial transcript

This asset does not have a video yet — so the written version stands in: the code line walk below narrates the snippet line by line, and the design rationale on this page explains the default decisions. When a video ships, this exact panel hosts its full transcript.

video: not yettranscript: line walk belowformat: markdown, searchable

Annotated snippet

Code line walk

The lines that matter, with the reason they matter. Click one:

Trade-off, visible

Size vs. quality slider

~2 KB~6 KB~12 KB

Standard · CSS + hover states

~6 KB

adds transitions, focus-visible and reduced-motion rules

The slider is honest: the slim tier has no JS, the pro tier pays for behaviour. Start slim, upgrade only the surfaces that need it.

HTML → React, priced

Stack-switch cost note

Taking the HTML/CSS version into a React component costs real work — and the cost is predictable:

Event wiring

Hover, focus and click become handlers — the CSS stays, the state appears.

Props for the knobs

Every inline value that should vary becomes a prop with a default — the defaults must match the CSS exactly.

The estimate

A clean port of this asset is 20–45 minutes for a React developer — the 107-character stylesheet is the easy half.

Find it the way you say it

Tag synonyms

Search on this site resolves synonyms globally — "dropdown", "select" and "picker" land on the same asset, so you never need to know the catalog's internal vocabulary.

When to pick which

Sibling comparison

Data table — data table
CompareScroll-jack by ChoiceAurora Hero SectionBento Studio Grid
KindSectionsSectionsSections
Bundle3.1 KB gzip6.2 KB gzip5.5 KB gzip
a11y93/10097/10096/100
Dependenciesnonenonenone
Copies / mo2304,8603,960
Interactionsscroll, click, keyboardscroll, hoverhover

The honest verdict — Scroll-jack by Choice is the lighter default here; reach for Aurora Hero Section when its extra weight buys an interaction this one lacks.

Read next — two guides and a prompt

picked by tag overlap, not by hand

How these three were chosen: essays scored on shared tags (1 and 1 matches), then prompt scored on block/vibe overlap (0 matches). The rule lives in src/lib/spine.ts, so the same asset always links to the same three pages and a second reader can reproduce the choice.

Was this helpful?