我想实现鼠标悬浮按钮背景颜色从左到右慢慢出来。
html
<div class="btn">
<button>按钮</button>
</div>
css
.btn button{
background-color: red;
width: 200px;
height: 40px;
border: none;
outline: none;
cursor: pointer;
color: white;
}
就是这样的。
谢谢啦。