Morph Blob
betaA decorative blob that morphs between a circle, a rounded square and a teardrop on a loop.
- Effects & motion
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add morph-blobnpm packages installed: class-variance-authority.
import { MorphBlob } from "@/components/ui/morph-blob";Default
Demo
Tinted
<MorphBlob>
| Prop | Type | Default |
|---|---|---|
durationLength of one full morph, in seconds, before motion scaling. Defaults to 2. | number | — |
pausedHolds the shape where it is. | boolean | — |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <span> except children.
Purely decorative: the element is aria-hidden and has no role or focus stop, so it never reaches assistive technology; put any meaning in nearby text. The loop's duration runs through --motion-scale, and under prefers-reduced-motion the animation is removed and the shape rests as a still circle. `paused` holds it in place for pages that pause ambient motion on their own.
7/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes