Loading V2
Animated loading v2 icon
Use the Loading V2 icon for loading spinners and progress indicators: it loops continuously and takes 1.53 s. Looping icons typically show loading spinners, active alerts, a ringing bell or a scroll-down hint.
Free under the MIT license · Markdown version · About the files
Use it
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import loading2 from 'react-useanimations/lib/loading2';
<UseAnimations animation={loading2} size={32} />npx shadcn@latest add https://useanimations.com/r/loading-v2.jsonimport { AnimatedLoadingV2 } from '@/components/animations/loading-v2';
<AnimatedLoadingV2 size={24} /><div id="loading-v2-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('loading-v2-icon');
const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: true, autoplay: false, path: 'https://useanimations.com/icons/loading-v2.json' });
const motion = matchMedia('(prefers-reduced-motion: reduce)');
a.addEventListener('DOMLoaded', () => { a.goToAndStop(0, true); if (!motion.matches) a.play(); });
motion.addEventListener('change', (event) => { if (event.matches) a.goToAndStop(0, true); else a.play(); });
</script>Loading V2 runs on the light build, lottie_light.min.js.
import LottieView from 'lottie-react-native';
<LottieView source={{ uri: 'https://useanimations.com/icons/loading-v2.json' }} autoPlay loop style={{ width: 48, height: 48 }} />import Lottie
LottieView {
await LottieAnimation.loadedFrom(url: URL(string: "https://useanimations.com/icons/loading-v2.json")!)
}
.playing(loopMode: .loop)
.frame(width: 48, height: 48)val composition by rememberLottieComposition(LottieCompositionSpec.Url("https://useanimations.com/icons/loading-v2.json"))
LottieAnimation(composition, iterations = LottieConstants.IterateForever, modifier = Modifier.size(48.dp))import 'package:lottie/lottie.dart';
Lottie.network('https://useanimations.com/icons/loading-v2.json', width: 48, height: 48, repeat: true)Bundle loading-v2.json with the app to use it offline.
Other versions
Questions about the Loading V2 icon
›Does the Loading V2 animation ever stop?
It pauses by itself while scrolled out of view and stays on its first frame when reduced motion is preferred or autoplay={false} is set. That first frame is empty for this icon, so keep a text label such as "Loading…" next to it. To show it only while something is pending, render it conditionally.
›How do screen readers announce the Loading V2 loader?
They don't unless you pass aria-label="Loading…", which gives it role="img". Often better: keep it hidden and set aria-busy="true" on the region that is loading.
›Can Loading V2 loop only while hovered instead?
Yes: pass interaction="hover-loop". It then loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred.