OPUS/UI

Navigation

Meteors

A deterministic meteor shower over a faint star field — identical on server and client, animated purely with the `animate-meteor` keyframes from opus.css.

csszero-jsrscspace2 files · 81 locdeps: clsx, tailwind-merge

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/meteors.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs meteors

Usage

import { Meteors } from "@/components/opus/backgrounds/meteors";

<Meteors count={18} className="absolute inset-0" />

API

PropTypeDefaultDescription
countnumber18Number of meteors.
color / backgroundstring—Meteor and sky colours.
anglenumber215Fall direction (deg).
durationnumber7Average flight time (s).
starsbooleantrueStatic stars behind.
classNamestring—Wrapper classes — `absolute inset-0` to fill a relative parent.
childrenReactNode—Content rendered on top.

Notes

  • No canvas, no WebGL — only CSS gradients/masks and compositor-friendly transform animations.
  • Server-component safe unless marked otherwise; animations stop under prefers-reduced-motion.
  • Needs the opus-meteor keyframes from opus.css.

Command palette