Tailwind UI Pattern Registry for humans and agents

fluid particles spring repel pointer physics interactive

Fluid Pointer

Details

Category
interactive
Complexity
medium
Browser
baseline-2024
Updated
2026-06-13
Animated Interactive Reduced Motion aria-hidden
fluidparticlesspringrepelpointerphysicsinteractive

Parameters

Name Type Default Description
COUNT number 80 Number of particles
PUSH_RADIUS number 90 Pointer influence radius in CSS pixels
PUSH_FORCE number 5 Repulsion force magnitude
FRICTION number 0.91 Velocity damping per frame (0 = instant stop, 1 = no damping)
RETURN_FORCE number 0.045 Spring constant — strength of return pull toward origin

80 particles orbit their rest positions under spring physics. Moving the cursor over the canvas applies a radial repulsion force — particles scatter, then return with oscillation. Auto-demo mode fires a wave every 1.2 seconds until the user interacts.

prefers-reduced-motion disables all particle velocity and renders them at rest positions only.