---
title: "Fisheye Dots Background"
description: "A calm dot grid that swells like a lens under the pointer."
url: https://gelatinui.com/components/fisheye-dots-background
markdown_url: https://gelatinui.com/components/fisheye-dots-background.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/fisheye-dots-background"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Fisheye Dots Background

> A calm dot grid that swells like a lens under the pointer.

Page: https://gelatinui.com/components/fisheye-dots-background

## When to use it

Best for: A quiet dot grid hero where a round lens swells the dots under the mouse.

- Use `cell` (0.5 to 4) for a dense or a wide grid.
- Use `bulge` (0 to 1.5) for how much the lens swells the dots.
- Use `mask` (`top`, `bottom`, `edges`, or `radial`) to fade an edge into the page, and `maskSoftness` for the width of the fade.

## When not to use it

- For satin folds of dots with no lens, use [Halftone Silk Background](https://gelatinui.com/components/halftone-silk-background.md).
- For bands of interference, use [Moire Weave Background](https://gelatinui.com/components/moire-weave-background.md).

## Notes for agents

- `pointer` is on by default: the lens follows a mouse or a pen, and rests in the middle when the pointer leaves.
- Children sit on top of the moving picture. The root is `relative isolate overflow-hidden`: give it a height, or let a flex parent size it.
- `palette` takes CSS colors: the ground, the second ground, then the look colors. The default palette has its own light and dark values.
- It stops off screen and in a hidden tab. `paused` holds the frame, and `speed={0}` shows a still frame.
- With no WebGL2 the box stays empty. Set `fallback` to show a CSS gradient of the palette there, on the server, and before the first frame.

## Anatomy

```text
FisheyeDotsBackground
```

## API reference

### FisheyeDotsBackground

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `palette` | `readonly string[]` | PALETTE | Any CSS colors (`var(--token)` too): the ground, the second ground, then the look colors. |
| `speed` | `number` |  | The time scale: 1 (default) is the designed speed, 0 a still frame. |
| `paused` | `boolean` |  | True holds the current frame. Default false. |
| `trigger` | `BackgroundTrigger` |  | When it moves: `loop` (default) or `hover`. It draws its first frame either way. |
| `seed` | `number` |  | Another seed gives another field of the same look. Default 0. |
| `press` | `boolean` |  | True: a press on the box sends a ripple through the field where it lands; a press on a button or a link inside does not. Default false. |
| `pointer` | `boolean` | true | True: the field leans toward a mouse or pen over the box. Default false. |
| `fps` | `number` |  | The most frames a second. Default: the display rate. |
| `resolution` | `number` |  | A last scale on the canvas pixels, after the caps (0.5 draws a quarter of them). Default 1. |
| `mask` | `"bottom" \| "edges" \| "none" \| "radial" \| "top"` |  | Fades an edge into the page: `radial`, `edges`, `top`, or `bottom`. Default `none`. |
| `vignette` | `number` |  | Darkens toward the corners, 0 to 1. Default 0. |
| `fallback` | `boolean` |  | True: a CSS gradient of the palette shows on the server, until the first WebGL frame, and with no WebGL. Default false: the box stays empty and the live picture fades in, because the gradient looks unlike the real effect and the swap reads as a glitch. |
| `cell` | `number` | 1 | The grid step, from 0.5 (dense) to 4 (wide). Default 1. |
| `bulge` | `number` | 1 | How much the lens swells the dots, from 0 (flat) to 1.5. Default 1. |
| `toneLow` | `number` | 0 | The field light that reads as no tone. From 0 to 1. Default 0. |
| `toneHigh` | `number` | 1 | The field light that reads as full tone. From 0 to 1. Default 1. |
| `maskSoftness` | `number` | 0.25 | The share of the box the mask fade takes, from 0.05 to 0.6. Default 0.25. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| FisheyeDotsBackground | `fisheye-dots-background` |  | `--fisheye-dots-bg`, `--fisheye-dots-bg-2`, `--fisheye-dots-color-1`, `--fisheye-dots-color-2`, `--fisheye-dots-color-3` |  |

## Usage

Put the hero content inside as children: they sit on top of the moving picture. Give the root a height.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/fisheye-dots-background @gelatin-ui/button
```

```tsx title="fisheye-dots-hero.tsx"
import { FisheyeDotsBackground } from "@/components/pro/backgrounds/fisheye-dots-background";
import { Button } from "@/components/ui/button";

export function FisheyeDotsHero() {
  return (
    <FisheyeDotsBackground
      bulge={1.2}
      className="flex h-[560px] flex-col items-center justify-center gap-6 px-6 text-center"
    >
      <p className="text-sm text-muted-foreground">Analytics, v4</p>
      <h1 className="max-w-2xl text-5xl font-light tracking-tight">
        See every point that matters
      </h1>
      <p className="max-w-md text-muted-foreground">
        Live dashboards for product teams, with no SQL to write.
      </p>
      <Button size="lg">Start free trial</Button>
    </FisheyeDotsBackground>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/fisheye-dots-background
```

It adds 51 registry items: 51 files, 7652 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Halftone Silk Background](https://gelatinui.com/components/halftone-silk-background.md)
- [Moire Weave Background](https://gelatinui.com/components/moire-weave-background.md)
- [Isobar Chart Background](https://gelatinui.com/components/isobar-chart-background.md)

## Motion

| Part | Motion |
| --- | --- |
| Show | chart · 600ms · ease-panel · the picture fades in after its first drawn frame |
| Loop | progress · the picture moves on its own clock at one speed; `speed` scales it, and 0 shows a still frame |
