{
  "id": "infinite-marquee",
  "name": "Infinite Marquee",
  "category": "effects",
  "tags": [
    "marquee",
    "scroll",
    "ticker",
    "logos",
    "loop",
    "animation"
  ],
  "description": "A seamless, endlessly scrolling row with faded edges. Great for logo strips.",
  "url": "https://copy-css.com/snippets/infinite-marquee",
  "markdown": "https://copy-css.com/snippets/infinite-marquee.md",
  "html": "<div class=\"marquee\">\n  <div class=\"marquee-track\">\n    <span>HTML</span><span>CSS</span><span>Design</span><span>Motion</span>\n    <span aria-hidden=\"true\">HTML</span><span aria-hidden=\"true\">CSS</span><span aria-hidden=\"true\">Design</span><span aria-hidden=\"true\">Motion</span>\n  </div>\n</div>",
  "css": "/* The track holds the items twice so the loop is seamless */\n.marquee {\n  width: 260px;\n  overflow: hidden;\n  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);\n  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);\n}\n\n.marquee-track {\n  display: flex;\n  gap: 12px;\n  width: max-content;\n  animation: marquee-scroll 10s linear infinite;\n}\n\n.marquee-track span {\n  padding: 8px 16px;\n  border-radius: 999px;\n  background: #111;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.marquee:hover .marquee-track {\n  animation-play-state: paused;\n}\n\n@keyframes marquee-scroll {\n  to { transform: translateX(calc(-50% - 6px)); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .marquee-track {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "linear gradients",
    "masks",
    "Flexbox",
    "reduced-motion support"
  ],
  "customProperties": []
}
