{
  "id": "underline-link",
  "name": "Animated Underline",
  "category": "text",
  "tags": [
    "link",
    "underline",
    "hover",
    "navigation"
  ],
  "description": "A link underline that draws in from the left and exits to the right.",
  "url": "https://copy-css.com/snippets/underline-link",
  "markdown": "https://copy-css.com/snippets/underline-link.md",
  "html": "<a class=\"link-underline\" href=\"#\">Read the docs</a>",
  "css": ".link-underline {\n  position: relative;\n  color: #111;\n  font: 600 22px/1.4 system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.link-underline::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  bottom: -2px;\n  width: 100%;\n  height: 2px;\n  background: currentColor;\n  transform: scaleX(0);\n  transform-origin: right;\n  transition: transform 0.3s ease;\n}\n\n.link-underline:hover::after {\n  transform: scaleX(1);\n  transform-origin: left;\n}",
  "features": [
    "transitions",
    "transforms"
  ],
  "customProperties": []
}
