<a href="#">
Button
</a>
body {
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
a {
position: relative;
padding: 20px 20px 20px 30px;
color: #262626;
font-size: 24px;
font-family: sans-serif;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 10px;
&:before {
content: "";
position: absolute;
bottom: 0;
right: 0;
width: 100%;
height: 2px;
background: #262626;
transform-style: linear;
transition-property: height, width;
transition-delay: 0.5s, 1s;
transition-duration: 0.5s;
}
&:after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background: #fbff1e;
transform: scaleX(0);
transition: 0.5s;
transition-delay: 0s;
transform-origin: right;
z-index: -1;
}
&:hover {
&:before {
width: 2px;
height: 100%;
transition-property: width, height;
}
&:after {
transform: scaleX(1);
}
}
}
以上所述就是小编给大家介绍的《鼠标悬停动画效果》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
ARM嵌入式系统开发
斯洛斯 / 北京航大 / 2005-5 / 75.00元
《ARM嵌入式系统开发:软件设计与优化》从软件设计的角度,全面、系统地介绍了ARM处理器的基本体系结构和软件设计与优化方法。内容包括:ARM处理器基础;ARM/Thumb指令集;C语言与汇编语言程序的设计与优化;基本运算、操作的优化;基于ARM的DSP;异常与中断处理;固件与嵌入式OS;cache与存储器管理;ARMv6体系结构的特点等。全书内容完整,针对各种不同的ARM内核系统结构都有详尽论述,......一起来看看 《ARM嵌入式系统开发》 这本书的介绍吧!