Vertical Ribbon Staggered Cards: Rising Italic Outline Caption Between Two Columns of Parallax Cards
Goal
Build one tall white section with a vertical caption running down its centre axis: italic, outline only (transparent fill, thin dark stroke), set with writing-mode: vertical-rl and turned 180° so it reads bottom to top, repeated many times so it is much taller than the section. As the section crosses the viewport the caption rises, tied to scroll. On each side of it sits a column of plain white text cards with a soft, wide, diffuse shadow; the right column starts lower than the left so the four cards are staggered. Each card scrubs through a vertical parallax slightly larger than the previous one, so they drift apart as you scroll. On phones the caption moves to the left edge and the cards stack in one column. GSAP + ScrollTrigger, native scroll.
Tech
Vanilla HTML/CSS/JS with ES module imports. gsap (npm) + ScrollTrigger. Font: Funnel Display (400; the italic is synthesised).
Layout / HTML
<div class="vr">
<section class="vr-section" aria-label="Principles">
<div class="vr-ribbon" aria-hidden="true">
<div class="vr-track">
<span>Made to last</span> … ten times
</div>
</div>
<div class="vr-col vr-col--left">
<article class="vr-card"><h3>Built to be trusted. Made to move.</h3><p>…</p><p>…</p></article>
<article class="vr-card"><h3>Serious by design. Flexible by nature.</h3><p>…</p><p>…</p></article>
</div>
<div class="vr-col vr-col--right">
<article class="vr-card"><h3>Solid inside. Simple outside.</h3><p>…</p><p>…</p></article>
<article class="vr-card"><h3>Yours from day one</h3><p>…</p></article>
</div>
</section>
</div>
Styling
:root: --vr-paper:#ffffff, --vr-ink:#0a0b0f, --vr-ribbon-w:110px.
.vr:background:var(--vr-paper); color:var(--vr-ink); font-family:"Funnel Display"..vr-section:position:relative; display:grid; grid-template-columns:minmax(0,1fr) var(--vr-ribbon-w) minmax(0,1fr); column-gap:clamp(2rem,8vw,9rem); padding:12vh clamp(1.5rem,7vw,7rem) 30vh; overflow:hidden. The middle column stays empty: it is the lane for the caption..vr-ribbon:position:absolute; top:0; bottom:0; left:50%; width:var(--vr-ribbon-w); margin-left:calc(var(--vr-ribbon-w) / -2); overflow:hidden; pointer-events:none..vr-track:position:absolute; left:0; top:0; writing-mode:vertical-rl; transform:rotate(180deg); font-style:italic; font-weight:400; font-size:var(--vr-ribbon-w); line-height:1; letter-spacing:-.02em; white-space:nowrap; color:transparent; -webkit-text-stroke:1.2px var(--vr-ink). Eachspanhaspadding-bottom:.25em..vr-col:position:relative; z-index:2; display:flex; flex-direction:column; gap:40vh. Left:grid-column:1; grid-row:1; align-items:flex-end(cards hug the caption). Right:grid-column:3; grid-row:1; padding-top:34vh(the stagger)..vr-card:width:min(100%,424px); padding:64px 52px; background:var(--vr-paper); box-shadow:0 40px 90px -30px rgba(10,11,15,.16), 0 4px 18px rgba(10,11,15,.04); font-size:15px; line-height:1.45.h3:margin:0 0 44px; font-weight:400; clamp(2rem,3.4vw,3.25rem); line-height:1.02; letter-spacing:-.028em.p + p { margin-top:10px }.@media (max-width:820px):--vr-ribbon-w:64px; the section becomes one column withrow-gap:18vhandpadding:10vh 1.25rem 24vh calc(var(--vr-ribbon-w) + 1.75rem); the caption moves toleft:.75rem; margin-left:0; both columns go togrid-column:1; grid-row:auto; gap:18vh, the right one indentedpadding-left:1.25rem; cardswidth:100%; padding:36px 26px,h31.75rem.
GSAP effect (be exact)
gsap.registerPlugin(ScrollTrigger). Build in mount(config) → destroy().
const DEFAULTS = { rise: 28, base: 20, step: 6 };
const st = { trigger: ".vr-section", start: "top bottom", end: "bottom top", scrub: true };
Caption
gsap.fromTo(track, { yPercent: 0, rotation: 180 }, { yPercent: -28, rotation: 180, ease: "none", scrollTrigger: { ...st } });
rotation: 180 is repeated in both states because GSAP writes the whole transform; without it the CSS rotate(180deg) would be lost and the caption would flip.
Cards: for card i in DOM order (left top, left bottom, right top, right bottom):
const a = 20 + i * 6;
gsap.fromTo(card, { y: a }, { y: -a, ease: "none", scrollTrigger: { ...st } });
destroy(): kill every tween and its ScrollTrigger, then clearProps:"all" on the track and the cards (the CSS rotation comes back on its own).
Assets / images
None.
Behavior notes
- The caption track must be much taller than the section (ten repetitions here) so that after rising 28% of its own height it still covers the bottom edge; with a short phrase add more repetitions.
- The parallax amplitudes are small on purpose (20 to 38px): the cards should drift, not slide.
- Shadows are wide and low-opacity; on a coloured background tint them with the ink colour instead of black.
- Only the prefixed variables are global.
Using this outside its demo page
This component is written as a complete page: that is how the demo is meant to look. If you are dropping it into an existing project, or combining it with other components, these are the things it declares at document level and that you need to move or reconcile first.
- Palette on
:root:--vr-paper,--vr-ink,--vr-ribbon-w. Generic names like--ink,--paperor--mutedare defined by many components in this catalogue with different values, and they will also collide with whatever your own project defines. Move them onto the component's wrapper (.my-section { --ink: … }) or keep the prefix. - **Rules on
*, *::before, *::after,html, body**: the demo owns the whole document, so these set the box model and resets. Dropped into an existing project they restyle the entire page, not just this section. Re-target them at the component's wrapper before using it.