.animated-underline { position: relative; text-decoration: none; } .animated-underline::after { content: ""; position: absolute; left: 50%; top: 100%; width: 100%; height: 0.125em; background-color: hsl(200deg, 100%, 50%); transition: transform 320ms ease; transform: translate(-50%, 0%) scaleX(0); transform-origin: right; } .animated-underline:hover::after { transform-origin: left; transform: translate(-50%, 0%) scaleX(1); }
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3