If a website moves, tilts, changes depth, or shifts visual focus as you move your mouse, you are probably looking at a mouse tracking animation.
You may also see this type of interaction described as a cursor animation, cursor-driven animation, mouse move effect, or cursor-reactive interaction.
The basic idea is simple:
the position of the pointer becomes an input for the animation.
Instead of playing automatically, the interface responds to the way the user moves across the screen.
What Is Mouse Tracking Animation?
A mouse tracking animation is a web interaction that continuously responds to the user's pointer position.
For example, moving the cursor can make an element:
- rotate
- move
- scale
- change perspective
- shift depth
- reveal light or gradients
- change visual focus
Unlike a normal animation that simply starts and finishes, a mouse tracking effect changes while the pointer moves.
Mouse Tracking vs Hover Animation
Hover animation usually works with two states:
Normal → Hover
For example, a button may grow slightly when the cursor enters it.
Mouse tracking animation is more dynamic.
Instead of switching between two states, the animation can respond to the exact position of the cursor.
Moving from the left side of a card to the right side might gradually change its rotation, position, or perspective.
This is why mouse tracking effects often feel more interactive than standard hover effects.
Cursor-Driven vs Cursor-Following Animation
A cursor-following animation usually means an element literally follows the pointer.
Examples include:
- custom cursors
- floating labels
- image previews
- trailing circles
- glowing particles
A cursor-driven animation is broader.
The cursor may control another part of the interface without anything directly following it.
For example, pointer movement might control:
- card tilt
- image depth
- background movement
- panel scaling
- visual focus