Curved Inline Type
A sticky scroll stage where headline lines ride an invisible vertical drum. Each line rises from below, flattens and brightens at the front, then rolls up and fades over the top, with images and looping videos sitting inline between words.
Installation#
pnpm dlx shadcn@latest add @davinciui/curved-inline-typeUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
linesHeadline rows. Each row takes before/after text plus an optional inline image or video, href and newTab. Defaults to the built-in 14-line composition. | CurvedInlineLine[] | — |
scrollLengthHeight of the scroll track. The stage stays sticky for height minus one viewport. | string | number | "400vh" |
sweepDegTotal angle between the first and last line. | number | 260 |
directionForward reproduces the live reference; reverse starts with the first line at the front. | "forward" | "reverse" | "forward" |
mappingLive matches the published Framer site. Spec uses the brief's theta0 = progress * sweepDeg mapping. | "live" | "spec" | "live" |
perspectiveCSS perspective in px, capped responsively at 170vw. | number | 1200 |
ringHeightVertical lift multiplier, applied to min(42vh, 42vw). | number | 0.8 |
ringDepthDepth reach multiplier, applied to min(46vh, 46vw). | number | 1.25 |
textRotationrotateX per degree of ring angle. | number | 1.15 |
fadeExponentCurve of the front-to-back opacity falloff. | number | 1.5 |
minOpacityOpacity of lines at the back of the drum. | number | 0.06 |
blurAmountMaximum backdrop blur in px for far lines. | number | 3 |
fontSizeHeadline type size. | string | "clamp(24px, 8.55vw, 94px)" |
mediaHeightInline media height in em. | number | 0.9 |
mediaWidthInline media width in em. | number | 1.035 |
mediaRadiusInline media corner radius in px. | number | 10 |
textColorHeadline color. Defaults to your theme's foreground token, so it follows light and dark mode. | string | "var(--foreground, #f4f2ed)" |
backgroundStage background. Defaults to your theme's background token. | string | "var(--background, #0b0b0e)" |
captionColorCaption color. Defaults to your theme's muted-foreground token. | string | "var(--muted-foreground, #8b8b96)" |
springScroll spring that supplies the soft end overshoot. | CurvedSpringSettings | { stiffness: 90, damping: 26, mass: 1 } |
captionTextFixed caption above the stage. | string | "SCROLL SCROLL SCROLL..." |
captionPulsePulses the caption between 0.08 and 0.55 opacity. | boolean | true |
Accessibility#
The stage is decorative: all lines rotate on an aria-hidden track, inline images use empty alt text, and the fixed caption is aria-hidden. The page itself remains keyboard-scrollable, so PageUp, PageDown, Space, and arrow keys still drive the ring through native scroll. Videos are muted, looping, and never focusable.
Motion#
A single requestAnimationFrame loop reads page scroll, smooths the base angle with a stiffness 90 / damping 26 / mass 1 spring, and writes transforms straight to the DOM. The spring overshoots softly at both ends. prefers-reduced-motion jumps the ring directly to the scroll target and stops the caption pulse.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

