HomeWorkFluid Cursor

Experiment · Live · Open-source library · 2026

Fluid Cursor

A cursor that flows: spring physics in four kilobytes, with no dependencies.

JavaScriptno dependencies

CapabilityProduct & Web Engineering

Fluid Cursor, demo page on desktop
Fluid Cursor: The playground: the cursor on real elements
Fluid Cursor on a phone

The brief

A small library that replaces the pointer with a blob that trails movement and grows on links and buttons. It is configured with data attributes and installs with one script tag.

The challenge

A cursor effect usually costs a dependency. This one had to fit in four kilobytes and install with one script tag.

Our role

  • Library design
  • Physics
  • Demo playground

What we built

  • Spring physics. A blob that trails the pointer and reacts to interactive elements.
  • A data-attribute API. Configure it in HTML without writing JavaScript.
  • A live playground. Every control is adjustable on the demo page, with a copyable install snippet.
  • Touch fallback. Touch devices get an autonomous blob instead.

Outcome

A live demo and install snippet are online.

Credits

An open-source DarkForge lab project.

Fluid Cursor: Install with one script tag
Install with one script tag

What we chose, and why.

The decisions that shaped the build, and the reason behind each.

Decision 01

Spring physics

A small integrator drives the blob's position and stretch.

Decision 02

Data attributes as the API

It is configured in HTML, with no JavaScript required.

Decision 03

A touch fallback

Touch devices get an autonomous blob.

Your project

Need something like this?

Tell us about the system, the storefront or the workflow. We reply within one business day with next steps.