Hey everyone! I just finished building Palindrome of a Fall, an experimental single-page scrollytelling experience built around a bidirectional narrative mechanic.
Live Experience: https://palindrome-of-a-fall.vercel.app/
GitHub Repo: GitHub - 0xkev21/palindrome-of-a-fall · GitHub
The Concept
Most scroll-driven sites only tell a story in one direction. I wanted to make scroll progress itself a palindromic narrative device — seven lines, two readings, depending on which way you travel through them.
- Scrolling Down (0% → 100%): plays the timeline as a descent. The poem reads top-to-bottom as a story of collapse and creative doubt, while the particle field scatters and sinks toward the bedrock.
- The Turnaround (100%): the floor hit fires the impact; the first upward scroll arms the inversion. It isn’t a camera flip — it’s a semantic one. A uTruth uniform ramps 0 → 1 over 1.8s, flipping the shader’s gravity sign, shifting the palette from cold cyan to kintsugi gold, swapping the artwork set (actN_desc → actN_asc), and reversing the environment’s light shaft, chevrons and slipstream. A letterbox, gold flash and crack-burst sequence sells the turn.
- Scrolling Up (100% → 0%): the mode is latched, so the inverted perspective holds. The same lines arrive in reverse order, and the meaning flips from falling to flying as the figure morphs into its winged ascent pose, the fractured slabs weld back in gold, and the palette ignites.
Tech Stack & Implementation
- Three.js + Custom GLSL Shaders: a ~38,000-point scene cloud sampled from 14 pre-rendered frames, plus a separate 28,000-point figure sampled from two silhouettes. The vertex shader does the displacement: uScrollVelocity, a travelling shockwave (uWaveT / uWaveAmp / uWaveOrigin), chapter scatter, pointer repulsion, and the uTruth gravity flip. The figure’s own shader morphs between the falling and winged poses. The fragment shader only shapes the soft round sprite and its alpha.
- GSAP ScrollTrigger + Lenis: Lenis supplies the inertia; ScrollTrigger exposes normalized progress, which the render loop maps to shader uniforms each frame. GSAP tweens handle the UI beats (inversion card, letterbox, replay).
- Interactive Audio Atmosphere: two looping ambient beds (descent / ascent) crossfaded by truth, plus one-shot stingers for wall cracks, bedrock impact and wing ignition. Scroll velocity gently modulates master gain.
Would love to hear your thoughts on the shader transitions, scroll pacing, and performance!
