StealThis .dev

Scroll Trigger Story

Section-by-section storytelling using viewport-triggered reveals.

Open in Lab
gsapscrolltrigger
Targets: JS HTML

Code

body { margin: 0; background: #060b13; color: #f2f6fe; font-family: "Avenir Next", sans-serif; }
.back { position: fixed; top: 14px; left: 14px; color: #86e8ff; text-decoration: none; z-index: 10; }
.panel { min-height: 100vh; width: min(900px, 92%); margin: 0 auto; display: grid; align-content: center; gap: .7rem; border-bottom: 1px solid #24314a; }
h1,h2,p { margin: 0; }
p { color: #c1cde1; max-width: 60ch; }

Scroll Trigger Story

Section-by-section storytelling using viewport-triggered reveals.

Source

  • Repository: libs-gen
  • Original demo id: 03-scroll-trigger-story

Notes

Section-by-section storytelling using viewport-triggered reveals.