Built for Motion
Log in

3D Blooming Branch Hover Effect with Real Moss and Wildflowers

proMouse MoveOn HoverOn Load
Loading preview

Overview

A full-screen 3D hover section for React and Next.js. A photoscanned dead log lies on a pale studio wall, and wherever the cursor passes, moss creeps over the wood while real moss cushions, grass, celandine and periwinkle spring up out of it, casting soft shadows, then sink back once the cursor moves on.

Everything on screen is a real-time 3D model: a photoscanned dead log with physically based wood, lit by a studio environment and a warm key light, and three photoscanned plants (a moss cushion, celandine with its yellow flowers and round leaves, and periwinkle) plus tufts of thin grass blades, instanced over its top about 1,500 times, all at zero size to begin with. A soft shadow map lets every leaf cast its real shape onto the wood. The demo uses CC0 assets from Poly Haven, so there are no licences to worry about.

Details

Category
Hero
Interaction
Mouse Move + On Hover + On Load
Trigger
Mouse Move
Languages
React, TypeScript, Tailwind

(01)Keep exploring

All 150 components

Built with the same techniques

(02)FAQ

3D Blooming Branch Hover Effect with Real Moss and Wildflowers — FAQ

01What does it need from my page?

npm install three. Copy the four asset folders (log, moss, celandine, periwinkle: about 11 MB at 1k textures) into your public folder and point base at them. Give the component a size with className, such as h-dvh w-full.

02Can I use my own log or plants?

Yes. Swap the glTF files for your own: anything long and lying on its side works as the log, and any small plants with an alpha map work as growth. Moss and flowers grow where the log's surface faces up.

03Can growth stay instead of shrinking back?

Yes: linger={Infinity} keeps everything that grows. reach sets how wide one touch spreads, in metres along the 4 m log.

04Does it work on phones?

Yes. Touching or dragging over the log grows things under your finger, and a vertical swipe still scrolls the page. On a tall screen the log is shown larger and cropped to its middle.

05What happens with reduced motion?

Growth appears and disappears without springing, the log doesn't lean toward the cursor and the opening sweep doesn't run.