Rope Cursor
A smooth segmented rope follows the pointer with progressively delayed motion.
Move across the preview to draw a flowing rope trail.
Component preview
Install using CLI
npx shadcn@latest add "https://www.obsidianui.dev/r/rope-cursor.json"Usage
Code
"use client";
import { RopeCursor } from "@/components/block/rope-cursor";
export default function Demo() {
return <RopeCursor height={400} ropeColor="#d0b88c" ropeWidth={3} className="bg-[#151714]">
<p className="pointer-events-none grid h-full place-items-center text-3xl text-[#d0b88c]">Follow your curiosity.</p>
</RopeCursor>;
}Install Manually
1
Install dependencies
npm install clsx gsap motion tailwind-merge
2
Copy the source code
Copy into components/block/rope-cursor.jsx
3
Add the supporting file
Copy into lib/utils.ts
Preview behavior
Move across the preview to draw a flowing rope trail. The effect stays inside its container and respects reduced motion preferences.
Last updated on