Backgrounds

Sakura Tree

A painterly toon-shaded 3D cherry-blossom scene with wind-driven falling petals.

Install

bun add three @react-three/fiber clsx tailwind-merge

Then copy 2 files into your project:

  • components/registry/sakura-tree/sakura-tree.tsx
  • lib/utils.ts

Props

PropTypeDefaultDescription
windSpeednumber3Branch sway and petal drift speed.
fallingPetalsnumber129Number of petals drifting through the air. Fades out and disables when bloom is zero.
bloomAmountnumber0.85Canopy fullness, bare branches to full blossom.
weather"clear" | "breezy" | "overcast" | "storm""clear"Bundles ambient light, fog density and a wind multiplier.
windDirectionnumber45Compass direction the petals drift toward.
cameraDistancenumber8Orbit radius — how far the camera sits from the tree.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Float
A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.

Related Components

Appears In