- Interaction
- Click replay
- Category
- Design & layout
- Duration
- 1.13 s
- Frame rate
- 30 fps
- Artboard
- 32 × 32 px
- Lottie size
- 1.4 kB
Mouse Pointer
Animated mouse pointer icon
The Mouse Pointer animated icon replays on every click in 1.13 s and pairs with Scroll down and Scissors in the design & layout set. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.
Free under the MIT license · Markdown version · About the files
Use it
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import mousePointer from 'react-useanimations/lib/mousePointer';
<UseAnimations animation={mousePointer} size={32} />npx shadcn@latest add https://useanimations.com/r/mouse-pointer.jsonimport { AnimatedMousePointer } from '@/components/animations/mouse-pointer';
<AnimatedMousePointer size={24} /><div id="mouse-pointer-icon" style="width: 48px; height: 48px"></div>
<script src="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js"></script>
<script>
const el = document.getElementById('mouse-pointer-icon');
const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: false, autoplay: false, path: 'https://useanimations.com/icons/mouse-pointer.json' });
const motion = matchMedia('(prefers-reduced-motion: reduce)');
el.addEventListener('click', () => { if (!motion.matches) a.playSegments([0, a.totalFrames], true); });
</script>Mouse Pointer runs on the light build, lottie_light.min.js.
import LottieView from 'lottie-react-native';
<LottieView source={{ uri: 'https://useanimations.com/icons/mouse-pointer.json' }} autoPlay loop={false} style={{ width: 48, height: 48 }} />import Lottie
LottieView {
await LottieAnimation.loadedFrom(url: URL(string: "https://useanimations.com/icons/mouse-pointer.json")!)
}
.playing(loopMode: .playOnce)
.frame(width: 48, height: 48)val composition by rememberLottieComposition(LottieCompositionSpec.Url("https://useanimations.com/icons/mouse-pointer.json"))
LottieAnimation(composition, iterations = 1, modifier = Modifier.size(48.dp))import 'package:lottie/lottie.dart';
Lottie.network('https://useanimations.com/icons/mouse-pointer.json', width: 48, height: 48, repeat: false)Bundle mouse-pointer.json with the app to use it offline.
<img src="https://useanimations.com/icons/mouse-pointer/mouse-pointer.svg" alt="Mouse Pointer" width="24" height="24" />Inside <img> the SVG draws black; inline it to follow the text color.
Static SVG
Questions about the Mouse Pointer icon
›What happens if Mouse Pointer is clicked again before it finishes?
No queue: every click restarts the 1.13 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.
›How do I make Mouse Pointer an accessible button?
Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Mouse Pointer" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.
›Can Mouse Pointer play on hover instead?
Yes: pass interaction="hover-replay". It then plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.