Cursor Follower

Cursor Follower: A smooth spring-based cursor follower with customizable physics, velocity scaling, and custom child icons or badges. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Cursor Follower

npx motion-ui-skill add cursor-follower

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Cursor Follower

A smooth spring-based cursor follower with customizable physics, velocity scaling, and custom child icons or badges.

Install

npx motion-ui-skill add cursor-follower

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { CursorFollower as CursorFollower } from "@/components/craft/cursor-follower";

export function Example() {
  return (
    <div className="p-6">
      <CursorFollower />
    </div>
  );
}

Browse this category