
Hover Slider
WebGL
A full-screen canvas counter where grid blocks scatter and melt together through a gooey filter to form each number, counting from 0 up to a set maximum and looping.
Gooey Counter is a counting showcase: square blocks on a grid gather into each number, scatter into a random layout, then melt back together into the next number, with an SVG gooey filter making them flow like liquid.
Use Gooey Counter when the counting itself is the visual, such as a playful brand moment, launch teaser, or studio showcase. It counts from 0 up to maxValue (2 to 100, default 100), loops back to 0, and has a Reset button that restarts it from 0. Grid size, block roundedness, pace (duration), and colours are configurable.
The production risk is treating it as a proof metric. It never settles on a final value, so it cannot present a figure such as a customer count. The digits are drawn on an aria-hidden canvas, and the current number is mirrored in visually hidden text.
import GooeyCounter from '@/components/effects/gooey-counter' const page = () => { return ( <> <GooeyCounter/> </> )} export default pageA launch or studio page can use Gooey Counter as a full-screen interlude, letting the blocks count up and melt from number to number as brand texture. Any metric that matters should sit elsewhere as plain text, because the counter keeps looping rather than landing on a value.
Not for proof metrics or financial, compliance, analytics, or dashboard numbers: the counter loops instead of resting on a value, and maxValue is capped at 100, so it cannot present a real figure.
Use one counter per page: it fills the viewport, redraws its canvas every animation frame through a blur-based SVG filter, and keeps looping rather than stopping. Grid size sets the number of columns, so a higher value gives smaller cells and more grid lines.
The canvas is aria-hidden and the current number is mirrored in a visually hidden text span. It updates as the count changes but is not a live region, so screen readers read the current value when they reach it rather than announcing every step. With reduced motion the scatter morph is skipped and the blocks snap from number to number, but the count still loops from 0 to maxValue; there is no separate mobile mode.
| Prop | Type | Default | Description |
|---|---|---|---|
maxValue | number | 100 | Upper bound of the looping 0..maxValue count sequence. |
gridSize | number | 22 | Number of grid columns used by the morphing counter. |
duration | number | 1 | Pace multiplier for the count/morph animation (1 = default speed). |
roundedness | number | 0 | Corner rounding for each gooey grid cell. |
blobColor | color | #111111 | Color of the gooey animated blocks. |
backgroundColor | color | #d1d1d1 | Background color behind the counter. |
Use it when a page needs a playful, liquid counting visual as brand texture, not to report a figure.
The canvas is aria-hidden, and the number currently drawn is mirrored as text in a visually hidden span. It is not a live region, so the count is not announced as it changes, and there is no final value because the count keeps looping.
Gooey Counter has no separate mobile mode: it still fills the screen and keeps counting, with the canvas and number layout sized to the smaller viewport. If the blocks feel busy at small sizes, lower the grid size or raise duration to slow the pace.
Not on its own. It counts to maxValue (capped at 100) and loops back to 0 without stopping, so put real figures in plain text and use the counter as decoration around them.
Gooey Counter skips the random scatter and snaps between numbers instead of morphing, but it keeps counting and looping back to 0.
Need a custom effect? Tell us what to create.