Modus UI

Hollow Bloom

Web (React)

A curved dot matrix that blooms outward from a hollow centre and drifts with the pointer, tinted from the theme primary.

A curved dot matrix that blooms outward from a hollow centre and drifts with the pointer, tinted from the theme primary. It fills its positioned parent, follows the active theme and palette in light and dark mode, pauses when off screen and renders a still frame when the user prefers reduced motion.

Modus / Hollow Bloom

Installation

CLI

npx @modus-ui/cli add hollow-bloom

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/hollow-bloom.tsx.
  3. Paste the code.

Usage

tsx
import { HollowBloom } from "@/components/ui/hollow-bloom";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <HollowBloom />
      <div className="relative z-10 p-8">
        <h1>Content over the background</h1>
      </div>
    </div>
  );
}

Props

PropTypeDefaultDescription
speednumber0.8Animation speed multiplier.
huenumber0Hue rotation in degrees.
saturationnumber1Saturation multiplier.
brightnessnumber1Brightness multiplier.
colorstringtheme primaryColour of the blooming marks.
backgroundColorstringtheme backgroundBackground colour.

Comments

  • No comments yet.