Modus UI

Gloop Trail

Web (React)

A pooled ink trail that follows the pointer, shading from the theme ink toward muted grey.

An ink trail that follows the pointer. Each step of the trail shades from your theme ink toward the muted token. It uses a custom SVG feGaussianBlur and feColorMatrix filter to blend multiple trailing DOM elements into a single fluid "pool" that follows your cursor physics.

Pointer study

Leave a trace

Ink pools and follows wherever you go.

Modus / Gloop Trail

Installation

CLI

npx @modus-ui/cli add gloop-trail

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/gloop-trail.tsx.
  3. Paste the code.

Usage

tsx
import { GloopTrail } from "@/components/ui/gloop-trail";

export default function Example() {
  return (
    <div className="relative h-[400px] w-full cursor-none overflow-hidden">
      <GloopTrail fillColor="hsl(var(--primary))" />
    </div>
  );
}

Props

PropTypeDefaultDescription
blobType"circle" | "square" | "almond""circle"Shape of the trailing drops.
fillColorstring"hsl(var(--primary))"Ink colour at the head of the trail.

Comments

  • No comments yet.