标签:OLE key cti webkit animation 通过 content border rgba
定义动画:
@keyframes mymove
{
from {left:0px;border-left: 0px solid #d91f24;}
to {left:3px;border-left: 4px solid #d91f24; box-shadow: 0px 0px 20px rgba(150, 150, 150, 0.4);}
}
@-webkit-keyframes mymove /*Safari and Chrome*/
{
from {left:0px;border-left: 0px solid #d91f24;}
to {left:3px;border-left: 4px solid #d91f24;box-shadow: 0px 0px 20px rgba(150, 150, 150, 0.4);}
}
通过添加类的方式触发:
.brand_li{
animation:mymove 450ms ;
-webkit-animation:mymove 450ms ;
animation-fill-mode: forwards;
}
jq:
$(".list_content>ul>a>li").hover(
function(){
console.log("1")
$(this).addClass("brand_li");
},
function(){
$(this).removeClass("brand_li");
}
)
css3动画
标签:OLE key cti webkit animation 通过 content border rgba
原文地址:https://www.cnblogs.com/1234wu/p/10641720.html