感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<h2>动画按钮</h2>
<button class="button"><span>访问 </span></button>
输入 JavaScript 代码……
xxxxxxxxxx
.button {
border-radius: 4px;
background-color: #f4511e;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
display: inline-block;
position: relative;
transition: 0.5s;
.button span:after {
content: '»';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
.button:hover span {
padding-right: 25px;
.button:hover span:after {
opacity: 1;
right: 0;