Sticky Pages

A pure static full-page sticky stacking scroll component where pages slide up and stack cleanly one over another without any tilting or distortion, before releasing smoothly into natural page scrolling.

Pure Static CSS Stacking · Native browser scrolling with physical shadows
position: sticky
Scroll Container

Scroll Down to Stack Pages

Each section locks at the top and stacks over the previous one with elevated top drop shadows.

01. ARCHITECTUREEngine Layer

High-Performance Sub-system

Distributed architecture designed for low-latency web interactions with zero layout shifts.

02. DESIGN SYSTEMVisual Tokens

Modern Monochromatic Aesthetic

Curated typography, precision spring physics, and physical shadow depth.

03. PRODUCTION READYRelease Flow

Zero Third-Party Lock-in

Direct code ownership delivered seamlessly via shadcn CLI with full typing.

Natural Flow Resumes

Normal page scrolling continues smoothly after stack release.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/sticky-pages

API Reference

PropTypeDefaultDescription
pagesStickyPageItem[]Array of page data objects (title, subtitle, description, badge, content, bg)
pageHeightstring'100vh'CSS height of each sticky page (e.g. 100vh, 85vh, 600px)
topOffsetnumber0Distance from top of viewport in pixels when a page locks into sticky position
stackOffsetnumber0Progressive pixel offset between stacked cards (0 for clean cover, 24 for visible deck header tabs)
roundedbooleantrueWhether pages have rounded top corners (rounded-t-3xl) as they stack over one another
shadowbooleantrueWhether pages cast an elevated top drop shadow over the preceding page
borderbooleantrueWhether pages have a subtle top highlight border
classNamestringAdditional CSS classes for outer container
childrenReactNodeOptional <StickyPage> elements for JSX composition mode