Components / Effects

Pulse

A halo that breathes in and out, for something that is live, recording or waiting.

Recording

Customize

Breath time
2.4s
Blur
8px
Spread
10px

Installation

Pulse is a recipe: a few layers of frame-effects put together, not a component of its own. Install frame-effects, then copy the code from the preview above.

npx shadcn@latest add https://fancyborders.vercel.app/r/frame-effects.json

The CLI copies the component into your project, adds anything it is built on, and writes its CSS into your global stylesheet. New to the CLI? See Installation.

Good to know

  • The halo holds still for people who ask for reduced motion.

API reference

FrameGlow

tsx
import { FrameGlow } from "@/components/ui/frame-effects";
PropTypeDefault
colorsstring[]

Colour stops, in order. Without them the layer reads the frame-from-*, frame-via-* and frame-to-* utilities.

–
gradientstring

Any CSS image, in place of the gradient built from the colours.

–
anglenumber | string

Direction of the gradient. Numbers are degrees.

135
spinboolean | number

Turn the gradient around the frame. A number is the seconds one turn takes; true is 4.

false
pulseboolean | number

Breathe in and out. A number is the seconds one breath in takes; true is 2.4.

false
blurnumber | string

Blur radius of the halo.

10
spreadnumber | string

Width of the band that is blurred. Wider is brighter.

14
opacitynumber

Strength of the halo, from 0 to 1.

0.75
offsetnumber | string

Distance from the frame's edge. Positive is outward, negative inward.

0
radiusnumber | string

Overrides the frame's radius for this layer.

–

Also accepts every div attribute, such as className and style.

FrameGradient

tsx
import { FrameGradient } from "@/components/ui/frame-effects";
PropTypeDefault
colorsstring[]

Colour stops, in order. Without them the layer reads the frame-from-*, frame-via-* and frame-to-* utilities.

–
gradientstring

Any CSS image, in place of the gradient built from the colours.

–
anglenumber | string

Direction of the gradient. Numbers are degrees.

135
spinboolean | number

Turn the gradient around the frame. A number is the seconds one turn takes; true is 4.

false
thicknessnumber | string

Line width, when different from the frame's.

–
offsetnumber | string

Distance from the frame's edge. Positive is outward, negative inward.

0
radiusnumber | string

Overrides the frame's radius for this layer.

–

Also accepts every div attribute, such as className and style.