Discover 2 Cursor Effects Components
Cursor Effects for React and Tailwind CSS
Cursor effects for React: a custom cursor, a trail that follows the pointer or elements that move with the mouse. Each one is a React component styled with Tailwind CSS v4.
What is a cursor effect?
A cursor effect changes how the mouse pointer looks or moves on a page, such as a custom cursor shape, a trail that follows the pointer or a circle that eases after the mouse. It gives a site character in the one place visitors are always looking.
On a good custom cursor website, the pointer stays accurate: the real click point is exact while the decoration follows a beat behind, the cursor changes clearly over links and buttons, and the effect switches off on touch screens, where there's no pointer to follow. Custom cursor trails and other cursor animation work best on portfolios, studios and launch pages, where a little play fits the brand. Every effect in this category is a React component styled with Tailwind CSS v4, and it's part of our React components.
How to add a cursor effect to your website
Run one CLI command, copy the source or paste an AI prompt. Whichever you pick, the code ends up in your project as a file you can edit.
- Pick one from the grid, open the live preview, and adjust colors, fonts and motion in the Customize panel.
- Install it with the CLI. Run
npx motionuikit@latest add <name>in your project folder (Node.js 20 or newer). It writescomponents/motionuikit/ui/<name>.tsx, undersrc/if your project has one, and installs the npm packages it needs. See the CLI guide. - Or copy it by hand. Copy the file from the page and install the npm packages it lists, or paste the AI prompt into Cursor, Claude, v0, Lovable, Bolt or any AI tool with a terminal.
- Use it. Import it from
@/components/motionuikit/ui/<name>, place it in your layout so it covers every page, and adjust the props.
Browse other component categories
Components are grouped by what they do on a page.
- Interactive elements: UI that responds to clicks, drags and scrolling. For pages people use, not just read.
- 3D elements: Three.js objects and scenes for your pages. For a focal point that adds depth next to a headline or a feature.
- Hover effects: components that react to the cursor. For links, buttons and cards that show they can be clicked.
- Animated buttons: call-to-action buttons with motion built in. For the moment a visitor decides to click.
- CSS animations: motion for any part of a page. For reveals, loops and transitions built with CSS and Motion.
- Text effects: headings and text that move. For the line you most want people to read, such as a headline or a key number.
- All React components: every category in one grid, which you can filter by style.
Frequently asked questions
For a static shape, point the CSS cursor property at an image. For one that moves, render an element that tracks
the mouse with a pointermove listener, give it pointer-events: none so clicks pass through, and animate its
position with CSS transforms or a library like Motion.
Use the cursor property with an image and a fallback keyword, for example cursor: url(cursor.png) 4 4, auto.
The two numbers set the click point inside the image. Keep the image small, ideally 32 by 32 pixels, because most
browsers ignore cursor images larger than 128 by 128. CSS alone can't animate the cursor's movement.
Store the pointer's recent positions and draw a dot, line or particle at each one, fading the older ones out.
Update them in a requestAnimationFrame loop instead of on every mouse event. For a few dots, plain elements with
transforms are enough; for hundreds of particles, draw them on a canvas.
No. Touch screens have no pointer that hovers, so a cursor effect has nothing to follow. Load it only when the
device has a mouse or trackpad, using the media query (hover: hover) and (pointer: fine), and let touch users
see the page without it.
Keep the real click point exact, and don't hide the system cursor unless your replacement tracks it with no lag.
Respect the prefers-reduced-motion setting by turning trails off or showing the plain pointer, mark decorative
elements with aria-hidden, and keep focus outlines visible for keyboard users.
Each component is marked Free or Pro. Browsing and live previews of free ones need no account; copying code or installing needs a free account. Pro components need a paid plan, which also includes every Pro section and template. See plans and limits.
Run npx motionuikit@latest add <name> in your project with Node.js 20 or newer. It writes the file to components/motionuikit/ui/ and installs the npm packages it needs. You can also copy the source from the page or paste its AI prompt into your editor.
React, in Next.js, Vite and Astro. Components are written in TypeScript; in a JavaScript project, the CLI converts them to .jsx and .js as it installs them. In Astro, it adds the React integration, and you render the component with client:load.
Yes. The Customize panel on each component page changes colors, fonts and motion in the live preview, and you can save a look you like as a variant on your account. Once it's installed, the source is yours to edit directly.
Yes. The license covers unlimited projects, client work included, and you keep everything you installed after your plan ends. You can't resell the components as your own UI kit, template or design file, or use them to build a competing product.


