Presets

CSS loaders

12 loaders with ready-to-paste CSS code.

01 Spinner loop
Spinner · CSS Tune →
.spinner {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border: 4px solid #d4ff3a2e;
  border-top-color: #d4ff3a;
  border-radius: 50%;
  animation: spinner-spin 0.9s linear infinite;
}

@keyframes spinner-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
02 Dual ring loop
Dual ring · CSS Tune →
.dual-ring {
  position: relative;
  width: 56px;
  height: 56px;
}

.dual-ring__outer {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: #d4ff3a;
  border-bottom-color: #d4ff3a;
  border-radius: 50%;
  animation: dual-ring-spin 1.2s ease-in-out infinite;
}

.dual-ring__inner {
  position: absolute;
  inset: 12.32px;
  border: 4px solid transparent;
  border-left-color: #7c7cff;
  border-right-color: #7c7cff;
  border-radius: 50%;
  animation: dual-ring-spin 0.9s ease-in-out infinite reverse;
}

@keyframes dual-ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
03 Bouncing dots loop
Bouncing dots · CSS Tune →
.dots {
  display: flex;
  align-items: center;
  gap: 8.4px;
}

.dots__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4ff3a;
  animation: dots-bounce 1.4s ease-in-out infinite both;
}

.dots__dot:nth-child(2) {
  animation-delay: 0.16s;
}

.dots__dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes dots-bounce {
  0%, 80%, 100% { transform: scale(0.35); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}
04 Typing indicator loop
Typing indicator · CSS Tune →
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4.8px;
  padding: 12.8px 16px;
  background: #2a2a30;
  border-radius: 20px;
  border-bottom-left-radius: 4.8px;
}

.typing-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8e8ea;
  animation: typing-dots-hop 1.2s ease-in-out infinite both;
}

.typing-dots__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dots-hop {
  0%, 60%, 100% { transform: translateY(0px); opacity: 0.45; }
  30% { transform: translateY(-6px); opacity: 1; }
}
05 Equalizer bars loop
Equalizer bars · CSS Tune →
.bars {
  display: flex;
  align-items: center;
  gap: 4.2px;
  height: 40px;
}

.bars__bar {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  background: #d4ff3a;
  animation: bars-stretch 1s ease-in-out infinite both;
}

.bars__bar:nth-child(2) {
  animation-delay: 0.1s;
}

.bars__bar:nth-child(3) {
  animation-delay: 0.2s;
}

.bars__bar:nth-child(4) {
  animation-delay: 0.3s;
}

.bars__bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes bars-stretch {
  0%, 40%, 100% { transform: scaleY(0.35); }
  20% { transform: scaleY(1); }
}
06 Progress bar loop
Progress bar · CSS Tune →
.progress-bar {
  position: relative;
  width: 280px;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #d4ff3a26;
}

.progress-bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 6px;
  background: #d4ff3a;
  animation: progress-bar-sweep 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes progress-bar-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
07 Skeleton loader loop
Skeleton loader · CSS Tune →
.skeleton {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 300px;
}

.skeleton__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #232328 30%, #3a3a42 50%, #232328 70%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #232328 30%, #3a3a42 50%, #232328 70%);
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton__line:nth-child(1) {
  width: 100%;
}

.skeleton__line:nth-child(2) {
  width: 78%;
}

.skeleton__line:nth-child(3) {
  width: 56%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
08 Pulse ring loop
Pulse ring · CSS Tune →
.pulse-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.pulse-ring__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #d4ff3a;
  border-radius: 50%;
  animation: pulse-ring-ping 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite both;
}

.pulse-ring__ring:nth-child(2) {
  animation-delay: 0.9s;
}

.pulse-ring__core {
  position: absolute;
  inset: 24.32px;
  border-radius: 50%;
  background: #d4ff3a;
}

@keyframes pulse-ring-ping {
  0% { transform: scale(0.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
09 Ripple loop
Ripple · CSS Tune →
.ripple {
  position: relative;
  width: 72px;
  height: 72px;
}

.ripple__circle {
  position: absolute;
  border: 3px solid #d4ff3a;
  border-radius: 50%;
  animation: ripple-grow 1.5s cubic-bezier(0.25, 1, 0.5, 1) infinite both;
}

.ripple__circle:nth-child(2) {
  animation-delay: 0.5s;
}

.ripple__circle:nth-child(3) {
  animation-delay: 1s;
}

@keyframes ripple-grow {
  0% { inset: 45%; opacity: 0; }
  10% { inset: 40%; opacity: 1; }
  100% { inset: 0%; opacity: 0; }
}
10 Orbit loop
Orbit · CSS Tune →
.orbit {
  position: relative;
  width: 72px;
  height: 72px;
}

.orbit__track {
  position: absolute;
  inset: 0;
  border: 1px solid #d4ff3a33;
  border-radius: 50%;
}

.orbit__arm {
  position: absolute;
  inset: 0;
  animation: orbit-spin 1.6s linear infinite;
}

.orbit__planet {
  position: absolute;
  top: -5.04px;
  left: 30.96px;
  width: 10.08px;
  height: 10.08px;
  border-radius: 50%;
  background: #d4ff3a;
  box-shadow: 0 0 8.64px #d4ff3a;
}

.orbit__arm-inner {
  position: absolute;
  inset: 18px;
  animation: orbit-spin 0.96s linear infinite reverse;
}

.orbit__moon {
  position: absolute;
  top: -3.24px;
  left: 14.76px;
  width: 6.48px;
  height: 6.48px;
  border-radius: 50%;
  background: #7c7cff;
}

@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
11 Flipping square loop
Flipping square · CSS Tune →
.square-flip {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #d4ff3a;
  animation: square-flip-flip 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes square-flip-flip {
  0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180deg) rotateY(0deg); }
  100% { transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); }
}
12 Arc spinner loop
Arc spinner · CSS Tune →
.arc-spinner {
  width: 48px;
  height: 48px;
  animation: arc-spinner-rotate 2.1s linear infinite;
}

.arc-spinner__arc {
  fill: none;
  stroke: #d4ff3a;
  stroke-width: 4;
  stroke-linecap: round;
  animation: arc-spinner-dash 1.5s ease-in-out infinite;
}

@keyframes arc-spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes arc-spinner-dash {
  0% { stroke-dasharray: 1 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90 150; stroke-dashoffset: -124; }
}

Every loader in this collection is plain HTML and CSS: a few empty elements, a class per part and one or two @keyframes rules. Nothing to install, no JavaScript and no images, so the code works in any stack, from a static page to a server-rendered template.

Pick a CSS loader spinner like the classic border-top Spinner or the Dual ring, a stroke-dash SVG Arc spinner, Bouncing dots, Equalizer bars, an indeterminate Progress bar or a gradient-shimmer Skeleton. Adjust it in the editor and the CSS tab updates live: the size, thickness and color values are written directly into the rules, so the copied code is ready to paste without variables to fill in.

The CSS is written to stay cheap: most loaders animate only transform and opacity, and the markup includes role="status" and an aria-label. Add a prefers-reduced-motion rule if your site already has one, and the loader is done.

How do I add a CSS loader to my page?

Copy the HTML snippet where the loader should appear and the CSS into your stylesheet. Class names are prefixed with the preset slug, so they will not collide with your existing styles. Show the loader while a request is pending and remove it, or toggle a hidden attribute, when content arrives.

Can I center a CSS loader on the page?

Wrap it in a container with display: grid and place-items: center, and give that container the height you need, for example 100vh for a full-page loader or the height of the card being loaded. For an overlay, make the container position: fixed with inset: 0 and a translucent background.

Why use a CSS loader instead of a GIF?

A CSS loader is a few hundred bytes, stays sharp at any size and on any screen density, can change color with your theme, and does not need a network request. GIFs are limited to 256 colors and hard transparency edges. Use a GIF only where CSS cannot run, such as in emails.