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.
branchColorstringBranch color. Defaults to rgba(var(--ink-rgb), 0.75).
treeImagestringURL of a transparent PNG of a bare tree. When set, it replaces the procedural tree and foliage masses are stamped at `foliageAnchors`.
foliageAnchorsFoliageAnchor[]Foliage positions over the image, as fractions of the drawn image box.
classNamestringAdditional CSS classes.
childrenReactNodeHero content rendered above the canvas.