Installation
npx kinetic-ui-cli@latest add gooey-cursor
Anatomy
This effect relies on a fundamental SVG filter technique:
feGaussianBlur: First, we blur multiple circulardivs so their edges overlap.feColorMatrix: Then, we sharply increase the alpha contrast to solidify the blurred intersections into a gooey liquid bridge.
We use Framer Motion's useSpring with varying levels of stiffness and damping for each blob to create a natural delayed trailing effect.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { GooeyCursor } from "@/components/creative/gooey-cursor";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { GooeyCursor } from "@/components/creative/gooey-cursor";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<GooeyCursor
containerRef{/* value */}
/>
</div>
);
}