<分区>
<分区>
.button {
font-size: 18px;
font-family: Bradley Hand;
color: purple;
background: rgb(0, 255, 0); /*Default settings for button*/
border: 5px;
width: 100px;
height: 50px;
transition-duration: 0.5s;
border-radius: 10%;
}
.button:hover {
background: rgb(0, 255, 125); /*Changes the buttons size, color,*/
width: 120px; /*and font size*/
height: 60px;
font-size: 22px;
}
<button class = "button">Click me!</button>
我希望它看起来就像您真的在按下一个按钮。有人帮忙!
最佳答案
尝试看看 w3schools 上的这一面,他们在按钮动画上有一些非常好的代码。 https://www.w3schools.com/howto/howto_css_animate_buttons.asp
关于html - 谁能告诉我为这个按钮制作一个合适的动画? (如按压),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46081354/