Gradient Mesh Blobs
Five saturated blobs wander on separate looping paths and melt into a mesh gradient, while one extra blob follows the cursor on a spring.
backgroundgradientmeshblobscursor
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/bg-gradient-mesh-blobs.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/bg-gradient-mesh-blobs.json"Manual install+
1. Install the dependencies.
$pnpm add motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Gradient Mesh Blobs" component from PixelPapa UI to this project. What it is: Five saturated blobs wander on separate looping paths and melt into a mesh gradient, while one extra blob follows the cursor on a spring. Category: Backgrounds. Depends on: motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/bg-gradient-mesh-blobs.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/bg-gradient-mesh-blobs.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/bg-gradient-mesh-blobs" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More backgrounds
- Animated Grid LinesA perspective floor of grid lines that scrolls toward the viewer forever, with light pulses racing down a few of the lines.
- Aurora BackgroundSlow drifting colour ribbons behind your content, built from blurred gradients with no canvas.
- Beams Light RaysSoft light rays fan out from above and sway a few degrees while breathing in brightness, with dust motes drifting through them.
- Dot Grid SpotlightA quiet dot grid where a soft light trails the cursor and swells the dots it passes over; it wanders on its own when idle.
- Flow FieldHundreds of canvas particles ride a slowly shifting vector field and leave fading silk trails in your theme colours.
- Hex Tiles HoverA canvas honeycomb (or square grid) where the tile under the cursor lights up, spills into its neighbours and slowly cools, with stray tiles sparking while idle.