最初我有一个盒子,通过转换鼠标悬停时,不透明度从0.5改为1。它运作良好。悬停动画fadein不透明度0.5悬停不透明度1
现在我想在不透明度0到0.5的开始添加一个延迟淡入动画。不幸的是,鼠标悬停转换不再起作用。
我欣赏每一个想法:)
.box {
width: 200px:
height: 50px;
padding:20px;
background-color: red;
transition: 1s ease;
opacity: 0;
opacity: 0.5 \9;
-webkit-animation:fadeIn ease-in 0.5;
-moz-animation:fadeIn ease-in 0.5;
animation:fadeIn ease-in 0.5;
\t
-webkit-animation-fill-mode:forwards;
-moz-animation-fill-mode:forwards;
animation-fill-mode:forwards;
-webkit-animation-duration:1s;
-moz-animation-duration:1s;
animation-duration:1s;
\t
-webkit-animation-delay: 3.5s;
-moz-animation-delay: 3.5s;
animation-delay: 3.5s;
}
.box:hover {transition: 0.5s; opacity: 1; }
<div class="box">This is a Box</div>
也许提供您的标记,或者我们猜测?谢谢 –