Butterfly Trail Cursor

A playful cursor trail effect that leaves butterfly-like forms behind the pointer for creative, retail, culture, and campaign pages.

Published On: June 4, 2026
Last Updated: August 17, 2026
@react-three/drei@react-three/fiberThree.js
Butterfly Trail Cursor

Overview

Butterfly Trail Cursor turns pointer movement into atmosphere: small playful forms trail behind the pointer.

Use it on creative homepages, portfolios, campaign pages, and brand experiments where the cursor can carry the visual language. Keep it off dashboards, checkout, forms, and utility-heavy product screens.

The production risk is restraint. Treat the cursor layer as throwaway: switch it off on touch, keep focus states visible, and let nothing about clicking depend on it. If the page falls apart once you remove the effect, the cursor was doing work it should not own.


Install Command

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Usage Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Component Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Example Production Use Case

Use this as cursor-system implementation guidance. Verify the shipped component export, pointer-tracking model, coarse-pointer disablement, z-index behavior, focus safety, cleanup, and reduced-motion handling before relying on exact props, defaults, imports, or installation steps.


Best Used For

  • Portfolio and campaign heroes where playful pointer motion fits the brand personality.
  • Desktop-only decorative layers that can disappear without removing content or controls.
  • Butterfly Trail Cursor gives pointer movement a brand role without hiding core controls or content.

Not For

Not for dashboards, checkout, forms, dense product UIs, or any flow where precision beats atmosphere.


Performance Budget

Use one cursor layer, throttle movement with requestAnimationFrame, avoid full-screen filter effects, and disable Butterfly Trail Cursor on coarse pointers.


Accessibility and Mobile

Switch it off for coarse pointers and leave touch native; anything revealed by the cursor needs a visible or tap-accessible alternative.


Common Mistakes

  • Letting Butterfly Trail Cursor cover focus rings or clickable controls.
  • Forgetting to disable the effect on coarse pointers.
  • Hiding useful content behind mouse-only movement.

Changelog

v1.1.0

Jul 22, 2026
reduce-motion applied

Props

PropTypeDefaultDescription
butterflyCountnumber14Number of trail butterflies.
trailDistancenumber18Distance between trail items.
wingColorstring#ffffffPrimary butterfly wing color.
sizenumber28Rendered butterfly size.
followSpeednumber0.18How quickly the trail follows the pointer.

Frequently Asked Questions

When should I use Butterfly Trail Cursor?

Use it when a creative homepage, portfolio, or campaign section needs small playful forms trailing the pointer not on utility flows.

Request a Custom Cursor Animation

Need a custom effect? Tell us what to create.