【发布时间】:2017-08-27 10:00:32
【问题描述】:
.learn-more {
color: #fff;
font-size: 20px;
text-align: center;
vertical-align: middle;
text-transform: none;
max-width: 155px;
margin: auto;
background-color: #363636;
padding: 8px 25px;
text-decoration: none;
}
.learn-more:hover {
color: #21C8FF;
transition: .3s ease-in-out;
-webkit-transition: .3s ease-in-out;
background-color: #fff;
text-decoration: none;
}
<a class="learn-more" href="about.html">Learn More</a>
所以我在我的网站上工作,我添加了一个 CSS 过渡,所以当你将鼠标悬停在某个东西上时,它会变成红色。很简单。我只是在使用...
过渡:.3s 缓入出局;
-webkit-transition: .3s 缓入出局;
但是当我取消悬停时,它就会消失。我想添加一个过渡,使其淡化回原来的颜色。有人知道怎么做吗?
谢谢!
小塔
【问题讨论】:
-
如果你能创建一个小提琴来演示发生了什么会有所帮助
-
请给我 2 分钟。
-
已添加到帖子中。
标签: css