❍Autumn Drift

Autumn Drift

A gnarled tree on a rocky outcrop in full fall color, swaying in wind and shedding leaves — the cursor is a gust that scatters them.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/autumn-drift.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/autumn-drift.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
leafCountnumber90Number of falling leaves.
windnumber0.5Wind strength 0–1: sway amplitude and horizontal drift.
treeAlign"left" | "center" | "right""left"Horizontal anchor of the tree.
leafColorsstring[]—Fall foliage palette, as "r, g, b" triples. Defaults to pumpkin/brick/gold/maroon/amber.
branchColorstring—Branch color. Defaults to rgba(var(--ink-rgb), 0.75).
treeImagestring"https://www.mellowui.com/trees/gnarled-tree.webp"URL of a transparent image of a bare tree. Defaults to the hosted gnarled tree; pass "" for the procedural tree.
foliageAnchorsFoliageAnchor[]—Foliage positions over the image, as fractions of the drawn image box.
classNamestring—Additional CSS classes.
childrenReactNode—Hero content rendered above the canvas.