npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tailwindcss-cursor-effects

v1.0.4

Published

Tailwind CSS plugin for advanced interactive cursor experiences

Readme

🖱️ tailwindcss-cursor-effects

Create interactive cursor effects using simple Tailwind CSS utility classes—no custom CSS required.

✨ Magnetic Buttons • 🎯 Spotlights • 💫 Cursor Followers • 🌊 Liquid Distortion • 🚀 Tailwind CSS v3 & v4

NPM Version NPM Downloads License Tailwind CSS


✨ Why?

Normally, creating advanced cursor interactions requires custom JavaScript, CSS, and lots of event handling.

<button class="custom-cursor"></button>

With tailwindcss-cursor-effects, simply add a utility class.

<button class="cursor-magnetic"></button>

No custom CSS.

No animation libraries.

Just Tailwind classes.

Works with every framework.


✨ Features

  • 🖱️ Interactive cursor followers
  • 🧲 Magnetic buttons
  • 💡 Spotlight effects
  • 🌊 Liquid distortions
  • 🎨 Blend mode cursors
  • 🖼 Image reveal cursor
  • ✨ Cursor trails
  • ⚡ High performance
  • 🧩 SSR friendly
  • ✅ Tailwind CSS v3 & v4

🌍 Works With

  • HTML
  • React
  • Next.js
  • Vue
  • Nuxt
  • Angular
  • Svelte
  • Astro
  • Remix
  • Laravel
  • WordPress
  • SolidJS
  • Qwik
  • Any Tailwind CSS project

📦 Installation

npm

npm install tailwindcss-cursor-effects

pnpm

pnpm add tailwindcss-cursor-effects

yarn

yarn add tailwindcss-cursor-effects

🚀 Setup

Tailwind CSS v4

@import "tailwindcss";

@plugin "tailwindcss-cursor-effects";

Tailwind CSS v3

module.exports = {
  plugins: [
    require("tailwindcss-cursor-effects"),
  ],
};

⚡ Initialize Runtime

Import the runtime once in your application.

import { useEffect } from "react";
import { initCursorEffects } from "tailwindcss-cursor-effects/dist/runtime";

export default function App() {
  useEffect(() => {
    const cleanup = initCursorEffects();
    return () => cleanup();
  }, []);

  return <YourApp />;
}

🎨 Examples

Magnetic Button

<button class="cursor-magnetic">
  Hover me
</button>

Cursor Ring

<div class="cursor-ring">
  Hover here
</div>

Spotlight

<div class="cursor-spotlight">
  Spotlight Effect
</div>

Flashlight

<div class="cursor-flashlight">
  Flashlight Effect
</div>

Text Reveal

<div class="cursor-text-wrapper">
    <h1 class="cursor-text-reveal">
        Hello World
    </h1>
</div>

Image Reveal

<div class="cursor-image"></div>

<a
  data-cursor-img="/image.jpg">
  Hover Me
</a>

Cursor Trail

<div class="cursor-trail">
  Move your mouse
</div>

Liquid Distortion

<div class="cursor-distort">
  Hover Me
</div>

📚 Available Utilities

| Category | Classes | |----------|----------| | Cursor Followers | cursor-ring, cursor-ring-double, cursor-halo, cursor-pulse, cursor-crosshair, cursor-lens, cursor-morph, cursor-dashed-orbit | | Blend Modes | cursor-difference, cursor-exclusion, cursor-overlay, cursor-color-dodge, cursor-saturation | | Lighting | cursor-glow-neon, cursor-flashlight, cursor-rgb-split, cursor-scanning-laser | | Magnetic | cursor-magnetic, cursor-magnetic-heavy, cursor-magnetic-elastic, cursor-repel, cursor-corner-snap, cursor-magnetic-invert, cursor-magnetic-x | | Spotlight | cursor-spotlight, cursor-spotlight-sm, cursor-spotlight-xl | | Text Reveal | cursor-text-wrapper, cursor-text-reveal, cursor-text-reveal-lg | | Distortion | cursor-distort | | Image Reveal | cursor-image | | Trail | cursor-trail |


🎥 Demo

👉 https://tailwindcss-cursor-effects.vercel.app


🧪 Playground

Clone the repository and start the playground.

git clone https://github.com/nidhidipak/tailwindcss-cursor-effects

cd tailwindcss-cursor-effects

npm install

npm run playground

🤝 Contributing

Contributions, issues and feature requests are welcome.

  1. Fork the repository

  2. Create a feature branch

  3. Commit your changes

  4. Open a Pull Request


📄 License

MIT License.


Made with ❤️ by Nidhi Patel

⭐ If this project helps you, please consider giving it a star.