使用方法如下:
&::before {
content: '';
position: absolute;
bottom: 0;
width: 100%;
border-bottom: 1px solid $line-color;
transform: scale(0);
transition: all .5s;
}
&:hover::before {
transform: scale(1);
}
版权声明:本文为weixin_41196185原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。