Cursor Effects Animation — Reference

Blob Cursor

The Blob Cursor is a CSS animation component that three spring-animated circles follow the cursor and merge via an SVG feGaussianBlur goo filter. Change the fill color and blob shape with the live controls. It ships as self-contained HTML and CSS with no external dependencies, making it drop-in ready for any modern web project regardless of framework or build system.

cursorspringblobsvg-filterinteractivegoo

When to use the Blob Cursor

Performance characteristics

How it compares

Unlike equivalent JavaScript implementations, the Blob Cursor does not require any runtime library — there is nothing to install, bundle, or load asynchronously.

Compared to animated GIFs or video embeds, this CSS component is resolution-independent, theme-able via CSS custom properties, and weighs a fraction of the equivalent media file.

Source code

CSS

css
* { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { width: 100%; height: 100%; overflow: hidden; background: #0f0f0f; cursor: none; }
    .hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: sans-serif; font-size: 16px; color: #ffffff; opacity: 0.45; pointer-events: none; user-select: none; letter-spacing: 0.04em; }
    .stage { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: url(#goo); }
    .blob { position: absolute; background: #ec4899; border-radius: 50%; transform: translate(-50%,-50%); }

HTML

html
<svg style="position:absolute;width:0;height:0">
    <filter id="goo">
      <feGaussianBlur in="SourceGraphic" stdDeviation="12" result="blur"/>
      <feColorMatrix in="blur" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 28 -10"/>
    </filter>
  </svg>
  <p class="hint">Move your cursor here</p>
  <div class="stage">
    <div class="blob" id="b0" style="width:52px;height:52px"></div>
    <div class="blob" id="b1" style="width:38px;height:38px"></div>
    <div class="blob" id="b2" style="width:26px;height:26px"></div>
  </div>

Full source

html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { width: 100%; height: 100%; overflow: hidden; background: #0f0f0f; cursor: none; }
    .hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: sans-serif; font-size: 16px; color: #ffffff; opacity: 0.45; pointer-events: none; user-select: none; letter-spacing: 0.04em; }
    .stage { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: url(#goo); }
    .blob { position: absolute; background: #ec4899; border-radius: 50%; transform: translate(-50%,-50%); }
  </style>
</head>
<body>
  <svg style="position:absolute;width:0;height:0">
    <filter id="goo">
      <feGaussianBlur in="SourceGraphic" stdDeviation="12" result="blur"/>
      <feColorMatrix in="blur" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 28 -10"/>
    </filter>
  </svg>
  <p class="hint">Move your cursor here</p>
  <div class="stage">
    <div class="blob" id="b0" style="width:52px;height:52px"></div>
    <div class="blob" id="b1" style="width:38px;height:38px"></div>
    <div class="blob" id="b2" style="width:26px;height:26px"></div>
  </div>
  <script>
    var mouse = {x: -200, y: -200};
    var blobs = [
      {x: -200, y: -200, vx: 0, vy: 0},
      {x: -200, y: -200, vx: 0, vy: 0},
      {x: -200, y: -200, vx: 0, vy: 0}
    ];
    var els = [document.getElementById('b0'), document.getElementById('b1'), document.getElementById('b2')];
    var cfgs = [
      {tension: 1200, friction: 40,  mass: 1},
      {tension: 200,  friction: 50,  mass: 10},
      {tension: 200,  friction: 50,  mass: 10}
    ];
    var targets = [mouse, blobs[0], blobs[1]];
    var last = null;

    function tick(ts) {
      if (!last) last = ts;
      var dt = Math.min((ts - last) / 1000, 0.05);
      last = ts;
      blobs.forEach(function(b, i) {
        var t = targets[i], c = cfgs[i];
        b.vx += (c.tension * (t.x - b.x) - c.friction * b.vx) / c.mass * dt;
        b.vy += (c.tension * (t.y - b.y) - c.friction * b.vy) / c.mass * dt;
        b.x += b.vx * dt; b.y += b.vy * dt;
        els[i].style.left = b.x + 'px';
        els[i].style.top  = b.y + 'px';
      });
      requestAnimationFrame(tick);
    }

    document.addEventListener('mousemove', function(e) { mouse.x = e.clientX; mouse.y = e.clientY; });
    requestAnimationFrame(tick);
  </script>
</body>
</html>

Frequently asked questions

How do I add the Blob Cursor to my project?

Copy the full source code from the code block on this page. Paste the <style> block into your stylesheet (or a <style> tag in your HTML head) and the HTML markup into your template. No npm install or build step is required — the animation is self-contained. To customize colors, speed, or size, use Grepped's workspace at grepped.dev/animations/cursors/blob-cursor.

Is the Blob Cursor free to use?

Yes. All Grepped preset animations are free to use in personal and commercial projects. You may copy, modify, and redistribute the code without attribution. The only limitation is that you may not resell the presets themselves as part of a competing animation library.

Does the Blob Cursor work on mobile browsers?

Yes. The Blob Cursor uses standard CSS animations and transforms that are supported in all modern mobile browsers — Chrome for Android, Safari on iOS 9+, Samsung Internet, and Firefox for Android. Where JavaScript is used for interactivity (e.g. cursor effects), it falls back gracefully on touch devices.

Can I customize the Blob Cursor's colors, speed, or size?

Yes. Open the live customization workspace at grepped.dev/animations/cursors/blob-cursor to adjust the animation with real-time sliders, color pickers, and toggles — no code required. For deeper changes, the source code uses CSS custom properties (variables) so you can edit them directly in your stylesheet.

Want to customize this animation or generate a new one from a text prompt?

Open in Workspace — it's free