23
Peacock Eyespot
Five concentric rings shrink inward in a ripple. Pure CSS and SVG.
- Biomimetic
- Cycle 1.3s
- Pure CSS and SVG, no JavaScript
- No dependencies
Customize
Palette
Preview background
Code
<!--
"Peacock Eyespot" loader by onemilliontools.com
https://loading.onemilliontools.com/loaders/peacock-eyespot
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Keep this notice, or credit "onemilliontools.com" with a link, wherever you use it.
-->
<style>
.omt-eye {
/* change these four to restyle the loader */
--omt-c1: #2979FF;
--omt-c2: #FF9100;
--omt-speed: 1;
--omt-size: 96px;
width: var(--omt-size);
height: var(--omt-size);
display: block;
}
.omt-eye-r {
transform-box: fill-box;
transform-origin: center;
animation: omt-eye calc(1.3s / var(--omt-speed)) ease-in-out infinite;
}
.omt-eye-r.r0, .omt-eye-r.r2, .omt-eye-r.r4 { fill: var(--omt-c1); }
.omt-eye-r.r1, .omt-eye-r.r3 { fill: var(--omt-c2); }
.omt-eye-r.r1 { animation-delay: calc(.13s / var(--omt-speed)); }
.omt-eye-r.r2 { animation-delay: calc(.26s / var(--omt-speed)); }
.omt-eye-r.r3 { animation-delay: calc(.39s / var(--omt-speed)); }
.omt-eye-r.r4 { animation-delay: calc(.52s / var(--omt-speed)); }
@keyframes omt-eye { 0%, 100% { transform: scale(1); } 50% { transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) {
.omt-eye-r { animation: none; }
}
</style>
<svg class="omt-eye" style="--omt-c1:#2979FF;--omt-c2:#FF9100;--omt-speed:1;--omt-size:160px" viewBox="0 0 100 100" role="img" aria-label="Loading">
<circle class="omt-eye-r r0" cx="50" cy="50" r="44.00"/>
<circle class="omt-eye-r r1" cx="50" cy="50" r="27.19"/>
<circle class="omt-eye-r r2" cx="50" cy="50" r="16.81"/>
<circle class="omt-eye-r r3" cx="50" cy="50" r="10.39"/>
<circle class="omt-eye-r r4" cx="50" cy="50" r="6.42"/>
</svg>
41 lines
The math
Ring radii shrink by φ each layer (44, 27.2, 16.8, 10.4, 6.4) and pulse scale 1 → 0.8 with a 0.13 s delay per ring.
Attribution
Free for personal and commercial use under CC BY 4.0. Keep the comment at the top of the snippet, or credit the author with a visible link.
Loader animation by onemilliontools.com: <a href="https://loading.onemilliontools.com/loaders/peacock-eyespot">onemilliontools.com</a>