13
Honeycomb Ripple
Nineteen hexagons light up ring by ring from the centre. Pure CSS and SVG.
- Geometry
- Cycle 1.5s
- Pure CSS and SVG, no JavaScript
- No dependencies
Customize
Palette
Preview background
Code
<!--
"Honeycomb Ripple" loader by onemilliontools.com
https://loading.onemilliontools.com/loaders/honeycomb-ripple
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-hex {
/* 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-hex-c {
opacity: .2;
transform-box: fill-box;
transform-origin: center;
animation: omt-hex calc(1.5s / var(--omt-speed)) ease-in-out infinite;
}
.omt-hex-c.r0 { fill: var(--omt-c1); animation-delay: 0s; }
.omt-hex-c.r1 { fill: color-mix(in srgb, var(--omt-c1) 50%, var(--omt-c2)); animation-delay: calc(.2s / var(--omt-speed)); }
.omt-hex-c.r2 { fill: var(--omt-c2); animation-delay: calc(.4s / var(--omt-speed)); }
@keyframes omt-hex {
0%, 100% { opacity: .22; transform: scale(.8); }
20% { opacity: 1; transform: scale(1); }
45% { opacity: .22; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
.omt-hex-c { animation: none; opacity: .8; transform: none; }
}
</style>
<svg class="omt-hex" style="--omt-c1:#2979FF;--omt-c2:#FF9100;--omt-speed:1;--omt-size:160px" viewBox="0 0 100 100" role="img" aria-label="Loading">
<polygon class="omt-hex-c r0" points="57.45,45.70 57.45,54.30 50.00,58.60 42.55,54.30 42.55,45.70 50.00,41.40"/>
<polygon class="omt-hex-c r1" points="40.13,45.70 40.13,54.30 32.68,58.60 25.23,54.30 25.23,45.70 32.68,41.40"/>
<polygon class="omt-hex-c r1" points="48.79,60.70 48.79,69.30 41.34,73.60 33.89,69.30 33.89,60.70 41.34,56.40"/>
<polygon class="omt-hex-c r1" points="48.79,30.70 48.79,39.30 41.34,43.60 33.89,39.30 33.89,30.70 41.34,26.40"/>
<polygon class="omt-hex-c r1" points="66.11,60.70 66.11,69.30 58.66,73.60 51.21,69.30 51.21,60.70 58.66,56.40"/>
<polygon class="omt-hex-c r1" points="66.11,30.70 66.11,39.30 58.66,43.60 51.21,39.30 51.21,30.70 58.66,26.40"/>
<polygon class="omt-hex-c r1" points="74.77,45.70 74.77,54.30 67.32,58.60 59.87,54.30 59.87,45.70 67.32,41.40"/>
<polygon class="omt-hex-c r2" points="22.81,45.70 22.81,54.30 15.36,58.60 7.91,54.30 7.91,45.70 15.36,41.40"/>
<polygon class="omt-hex-c r2" points="31.47,60.70 31.47,69.30 24.02,73.60 16.57,69.30 16.57,60.70 24.02,56.40"/>
<polygon class="omt-hex-c r2" points="40.13,75.70 40.13,84.30 32.68,88.60 25.23,84.30 25.23,75.70 32.68,71.40"/>
<polygon class="omt-hex-c r2" points="31.47,30.70 31.47,39.30 24.02,43.60 16.57,39.30 16.57,30.70 24.02,26.40"/>
<polygon class="omt-hex-c r2" points="57.45,75.70 57.45,84.30 50.00,88.60 42.55,84.30 42.55,75.70 50.00,71.40"/>
<polygon class="omt-hex-c r2" points="40.13,15.70 40.13,24.30 32.68,28.60 25.23,24.30 25.23,15.70 32.68,11.40"/>
<polygon class="omt-hex-c r2" points="74.77,75.70 74.77,84.30 67.32,88.60 59.87,84.30 59.87,75.70 67.32,71.40"/>
<polygon class="omt-hex-c r2" points="57.45,15.70 57.45,24.30 50.00,28.60 42.55,24.30 42.55,15.70 50.00,11.40"/>
<polygon class="omt-hex-c r2" points="83.43,60.70 83.43,69.30 75.98,73.60 68.53,69.30 68.53,60.70 75.98,56.40"/>
<polygon class="omt-hex-c r2" points="74.77,15.70 74.77,24.30 67.32,28.60 59.87,24.30 59.87,15.70 67.32,11.40"/>
<polygon class="omt-hex-c r2" points="83.43,30.70 83.43,39.30 75.98,43.60 68.53,39.30 68.53,30.70 75.98,26.40"/>
<polygon class="omt-hex-c r2" points="92.09,45.70 92.09,54.30 84.64,58.60 77.19,54.30 77.19,45.70 84.64,41.40"/>
</svg>
57 lines
The math
Hex tiling: ring k holds 6k cells. Each ring starts 0.2 s after the one inside it and the colour blends from the first to the second colour.
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/honeycomb-ripple">onemilliontools.com</a>