Skip to Content

Pulse Orb

Breathing glow blob: a single blurred color bloom that pulses slowly in scale and opacity for ambient light. Place it centered or in a corner with an adjustable bleed past the edge; takes any CSS color and stops under reduced motion.

Installation

pnpm dlx shadcn@latest add @01orbital/pulse-orb

Usage

import { PulseOrb } from "@/components/scene/pulse-orb"

// The house accent and LimbScene's coral rim, so the demo wears the kit's inks.
export default function PulseOrbDemo({
  animated = false,
}: {
  animated?: boolean
}) {
  return (
    <div className="grid h-dvh w-full place-items-center p-6">
      <PulseOrb
        animated={animated}
        position="top-left"
        color="var(--art-accent)"
        bleed={0.5}
      />
      <PulseOrb
        animated={animated}
        position="bottom-right"
        color="oklch(0.82 0.07 40)"
        bleed={0.7}
      />
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/pulse-orb-demo

API reference

A single blurred color bloom that pulses slowly in scale and opacity, for ambient light: centered, or in a corner with some of it past the edge.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Last updated on