Built for Motion
Log in

Regrove Reforestation Page with a WebGL Fluid Regrowth Hero

proFull pageOn LoadMouse MoveOn ScrollOn HoverOn Click
Loading preview

Overview

A full site for a reforestation charity, for React and Next.js. The hero is a burnt forest that a real GPU fluid grows back wherever you move, and every section below it is its own hand-drawn world: a fungal network that grows through the manifesto, a fire survivor's trunk that grows nine rings as you scroll, a hectare planted tree by tree from above, and a hillside you replant yourself with a click.

The hero runs a stable-fluids solver on the GPU: semi-Lagrangian advection, a Jacobi pressure solve and vorticity confinement on half-float targets. The pointer pushes velocity and growth into it, and the picture is drawn from that growth: a burnt grade of the photo (charcoal shadows, ash-grey light, tiny embers breathing in the darkest places) wherever there's none, the living photo where there is, cut along a thin golden thread whose width is measured against the slope of the fluid. Embers drift up through the ash and turn into pollen over living ground. Scrolling pins it while a second front regrows the whole screen and the headline turns over.

Details

Category
Hero
Interaction
On Load + Mouse Move + On Scroll + On Hover + On Click
Trigger
On Load
Files
21 source files, every section in its own file
Languages
React, TypeScript, plain CSS

(01)Keep exploring

All 7 templates

More full-page templates

(02)FAQ

Regrove Reforestation Page with a WebGL Fluid Regrowth Hero — FAQ

01What does it need from my page?

npm install gsap @gsap/react lenis. No Tailwind: the styles are plain CSS scoped to .regrove. Pass your fonts as the CSS variables --rg-serif (an editorial serif with italics, such as Newsreader), --rg-sans and --rg-mono, the way the example does with next/font.

02How do I change the text and pictures?

Edit content.ts. It holds the brand, the navigation, the hero headline and its second line, the manifesto, the nine stages, the figures, the call to action and the footer. The hero picture must be same-origin or served with CORS, because it's read into a WebGL texture.

03Can I use a real burnt photo instead of the graded one?

Yes. Pass ashImage to createRegrowth in Hero.tsx, lined up with the living photo, and the fluid uncovers one from the other instead of grading the burn in the shader.

04Are the trunk, the network and the hectare images?

No, all three are drawn on 2D canvases from seeded randomness, so they're the same on every visit, sharp on any screen and only redraw while they're on screen and something changes. The text and figures they show come from content.ts.

05What happens without WebGL2?

The hero shows the photo, graded down to ash in CSS, with all the text, links and scroll animation intact. The fluid needs WebGL2 with float render targets, which every current desktop and phone browser has.

06What happens on a phone?

Every section has a phone layout. A swipe over the hero scrolls the page and pushes the fluid as it goes, the trunk and the hectare pin with their text stacked beside them, a tap plants a tree on the hillside, and the header folds into a full-screen menu.

07What happens with reduced motion?

Smooth scrolling, the pins, the entrance bloom, the wandering growth and the embers switch off. The network, the trunk and the hectare are drawn finished, planted trees appear fully grown, and the grass stands still. The hero and the hillside still answer the pointer.