# LED Scanner Loader

> A row of LED segments with a red light sweeping back and forth, in the style of an 80s car scanner.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: scanning, sweep, segments, retro, red light, mask
- Live preview: https://copy-css.com/snippets/led-scanner-loader
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="loader-scanner" role="status" aria-label="Loading"></div>
```

## CSS

```css
.loader-scanner {
  width: 136px;
  height: 10px;
  background:
    linear-gradient(90deg, #0000, #ef4444, #fca5a5, #ef4444, #0000) 0 0 / 40% 100% no-repeat,
    #3b0a0a;
  /* Cut the bar into 7 segments */
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 16px, #0000 16px 20px);
  mask: repeating-linear-gradient(90deg, #000 0 16px, #0000 16px 20px);
  animation: loader-scanner-sweep 1.2s ease-in-out infinite alternate;
}

@keyframes loader-scanner-sweep {
  to { background-position: 100% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-scanner { animation-duration: 3s; }
}
```

## Notes

- This CSS LED Scanner Loader is 19 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses keyframe animations, linear gradients, masks and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
