Preset · Autumn season

Autumn preset

The built-in Autumn preset combines Falling Leaves with low-density amber Sparkles. Its typed factory supports replacing or disabling either effect.

Composition

Slowly drifting leaves with restrained amber accents.

React usage

Decoration.tsx
import { Zeenat } from "zeenat";

export function Decoration() {
  return <Zeenat preset="autumn" intensity="medium" />;
}

Next.js App Router

app/layout.tsx
import { Zeenat } from "zeenat";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return <html><body><Zeenat preset="autumn" />{children}</body></html>;
}

Vanilla JavaScript

main.ts
import { zeenat } from "zeenat/vanilla";

const decoration = zeenat({ preset: "autumn", intensity: "medium" });
// Later: decoration.destroy();

Typed customization

The Autumn subpath exports createAutumnPreset. Its supported options are listed below.

TSX
import { Zeenat } from "zeenat";
import { createAutumnPreset } from "zeenat/presets/autumn";

const customized = createAutumnPreset({
  leaves: false,
});

<Zeenat preset={customized} />;
PropertyTypeDefaultDescription
leavesFallingLeavesOptions | falsebuilt-in leaf configOverride Falling Leaves options or disable leaves.
accentsSparklesOptions | falsebuilt-in amber accentsOverride Sparkles options or disable accents.

Intensity and seed

Scene intensity scales effect counts without changing the preset API. A seed makes generated positions and timing deterministic across restarts.

TSX
<Zeenat preset="autumn" intensity="low" seed={2026} />

Reduced motion

Sparse static leaves and amber accents remain without falling or shimmer motion.

Accessibility and reduced motion

Scheduling

Keep dates out of preset definitions. Schedule the scene at the call site with explicit time-zone offsets. Set the year and local offset for your event.

TSX
<Zeenat
  preset="autumn"
  activeFrom="2026-12-01T00:00:00Z"
  activeUntil="2027-01-01T00:00:00Z"
/>