Skip to content

Cursor Effects

Custom cursors and pointer trails.

2 components

Image Reveal Cursor on Hover – Tailwind CSS cursor effects preview

Image Reveal Cursor on Hover

Tailwind CSS project list where hovering a row reveals a photo that follows the cursor with smooth easing and tilt, plus keyboard and touch fallbacks.

Custom Cursor Follower – Pure CSS cursor effects preview

Custom Cursor Follower

Smooth custom cursor with a dot and an eased ring that grows on links, shows a label over cards and inverts the headline, in CSS and vanilla JS.

What are cursor effects?

Cursor effects change how the mouse pointer looks or behaves: custom cursors with a dot and ring, magnetic buttons that pull the cursor in, pointer trails, spotlight and reveal effects, and cursors that grow or change label over links and images. They are popular on creative portfolios, agency sites, interactive landing pages and experimental demos.

When to use a custom cursor

Use a cursor effect when the site is meant to feel playful or crafted and the audience is mostly on desktop. On content-heavy or task-focused sites, a custom cursor can slow people down. Touch devices have no cursor, so the effect should simply switch off there.

Best practices for custom cursor effects:

  • Keep the native cursor available or make sure the custom one is precise; users must always know where they are clicking.
  • Enable effects only with @media (hover: hover) and (pointer: fine).
  • Mark cursor elements with aria-hidden="true" and pointer-events: none so they never block clicks or confuse assistive technology.
  • Update position with transform: translate() inside requestAnimationFrame, not by setting top and left on every mouse event.
  • Disable trails and smoothing delays for prefers-reduced-motion users.
  • Keep enough contrast so the cursor is visible on both light and dark sections; mix-blend-mode: difference can help.
  • Do not rely on hover-only cursor labels to convey essential information.

Bootstrap, Tailwind CSS and pure CSS cursor effects

Every cursor effect has a live preview and code tabs for HTML, CSS and JS. Bootstrap 6 versions use the new alpha ES module build and theme-* colour roles, Bootstrap 5 and Tailwind CSS versions combine the effect with their usual utilities, and pure CSS versions use plain styles with a small vanilla script for tracking. Pick your stack with the framework filter, copy or download the code and adjust size, colour and easing to suit your design.