{
  "id": "circular-text",
  "name": "Rotating Circular Text",
  "category": "text",
  "tags": [
    "circle",
    "textPath",
    "svg",
    "rotate",
    "badge",
    "scroll"
  ],
  "description": "Text set around a circle with SVG textPath, slowly spinning around a center icon.",
  "url": "https://copy-css.com/snippets/circular-text",
  "markdown": "https://copy-css.com/snippets/circular-text.md",
  "html": "<a class=\"circle-text\" href=\"#content\" aria-label=\"Scroll down\">\n  <svg viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n    <path id=\"circle-path\" d=\"M50 50m-38 0a38 38 0 1 1 76 0a38 38 0 1 1-76 0\"/>\n    <text><textPath href=\"#circle-path\" textLength=\"232\">SCROLL DOWN • SCROLL DOWN •</textPath></text>\n  </svg>\n  <span>↓</span>\n</a>",
  "css": ".circle-text {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 120px;\n  height: 120px;\n  text-decoration: none;\n}\n\n.circle-text svg {\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n  animation: circle-spin 12s linear infinite;\n}\n\n.circle-text path {\n  fill: none;\n}\n\n.circle-text text {\n  fill: #1c1917;\n  font: 700 10px system-ui, sans-serif;\n}\n\n.circle-text span {\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border-radius: 50%;\n  background: #1c1917;\n  color: #fef3c7;\n  font: 700 20px system-ui, sans-serif;\n}\n\n.circle-text:focus-visible {\n  border-radius: 50%;\n  outline: 2px solid #1c1917;\n  outline-offset: 4px;\n}\n\n@keyframes circle-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .circle-text svg { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "CSS Grid",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
