Spinners Animation — Reference

Load Man

The Load Man is a CSS animation component that a gaming-inspired pure CSS loader featuring a chomping Pac-Man character that eats a dotted track. Animated entirely with CSS keyframes and pseudo-elements. It ships as self-contained HTML and CSS with no external dependencies, making it drop-in ready for any modern web project regardless of framework or build system.

spinnerpacmangamingloaderchompfun

When to use the Load Man

Performance characteristics

How it compares

Unlike equivalent JavaScript implementations, the Load Man does not require any runtime library — there is nothing to install, bundle, or load asynchronously.

Compared to animated GIFs or video embeds, this CSS component is resolution-independent, theme-able via CSS custom properties, and weighs a fraction of the equivalent media file.

Source code

CSS

css
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }

    @keyframes load-man-travel {
      to { background-position: -200px 0; }
    }
    @keyframes load-man-chomp {
      0%   { transform: rotate(-45deg); }
      50%  { transform: rotate(calc(var(--close) * 1deg)); }
      100% { transform: rotate(-45deg); }
    }

    .load-man {
      animation: load-man-travel 1.2s infinite linear;
      background: repeating-linear-gradient(90deg, #6366f1, #6366f1 5%, transparent 5%, transparent 35%);
      height: 10px;
      position: relative;
      width: 200px;
    }
    .load-man:after,
    .load-man:before {
      content: '';
      position: absolute;
      left: -25px;
      top: 50%;
      border: 25px solid #facc15;
      border-radius: 100%;
      margin-top: -25px;
    }
    .load-man:before {
      --close: -90;
      animation: load-man-chomp 0.35s infinite linear;
      border-bottom-color: transparent;
      border-left-color: transparent;
    }
    .load-man:after {
      --close: 0;
      animation: load-man-chomp 0.35s infinite linear;
      border-right-color: transparent;
      border-top-color: transparent;
    }

HTML

html
<div class="load-man"></div>

Full source

html
<!DOCTYPE html>
<html>
<head>
  <style>
    body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f0f0f; }

    @keyframes load-man-travel {
      to { background-position: -200px 0; }
    }
    @keyframes load-man-chomp {
      0%   { transform: rotate(-45deg); }
      50%  { transform: rotate(calc(var(--close) * 1deg)); }
      100% { transform: rotate(-45deg); }
    }

    .load-man {
      animation: load-man-travel 1.2s infinite linear;
      background: repeating-linear-gradient(90deg, #6366f1, #6366f1 5%, transparent 5%, transparent 35%);
      height: 10px;
      position: relative;
      width: 200px;
    }
    .load-man:after,
    .load-man:before {
      content: '';
      position: absolute;
      left: -25px;
      top: 50%;
      border: 25px solid #facc15;
      border-radius: 100%;
      margin-top: -25px;
    }
    .load-man:before {
      --close: -90;
      animation: load-man-chomp 0.35s infinite linear;
      border-bottom-color: transparent;
      border-left-color: transparent;
    }
    .load-man:after {
      --close: 0;
      animation: load-man-chomp 0.35s infinite linear;
      border-right-color: transparent;
      border-top-color: transparent;
    }
  </style>
</head>
<body>
  <div class="load-man"></div>
</body>
</html>

Frequently asked questions

How do I add the Load Man to my project?

Copy the full source code from the code block on this page. Paste the <style> block into your stylesheet (or a <style> tag in your HTML head) and the HTML markup into your template. No npm install or build step is required — the animation is self-contained. To customize colors, speed, or size, use Grepped's workspace at grepped.dev/animations/spinners/load-man-spinner.

Is the Load Man free to use?

Yes. All Grepped preset animations are free to use in personal and commercial projects. You may copy, modify, and redistribute the code without attribution. The only limitation is that you may not resell the presets themselves as part of a competing animation library.

Does the Load Man work on mobile browsers?

Yes. The Load Man uses standard CSS animations and transforms that are supported in all modern mobile browsers — Chrome for Android, Safari on iOS 9+, Samsung Internet, and Firefox for Android. Where JavaScript is used for interactivity (e.g. cursor effects), it falls back gracefully on touch devices.

Can I customize the Load Man's colors, speed, or size?

Yes. Open the live customization workspace at grepped.dev/animations/spinners/load-man-spinner to adjust the animation with real-time sliders, color pickers, and toggles — no code required. For deeper changes, the source code uses CSS custom properties (variables) so you can edit them directly in your stylesheet.

Want to customize this animation or generate a new one from a text prompt?

Open in Workspace — it's free