wgrk.net
当前位置:首页 >> Css3 渐显 >>

Css3 渐显

//兼容调节元素的透明度 function setOpacity(elem,level){ if(elem.filters) elem.style.filter = "alpha(opacity="+level+")"; else elem.style.opacity = level/100; } //用递归渐渐显示, //这里的speed参数为显示速率,我将其暂时定义成:sp...

div { width:100px; height:100px; background:red; position:absolute; animation:myfirst 5s; -webkit-animation:myfirst 5s; animation-fill-mode: forwards; } @-webkit-keyframes myfirst /* Safari and Chrome */ { 0% {background:red; ...

div { width: 100px; height: 100px; background: red; -webkit-transition: -webkit-transform .5s ease-in, background .5s ease-in; -moz-transition: -moz-transform .5s ease-in, background .5s ease-in; -o-transition: -o-transform .5s...

网站首页 | 网站地图
All rights reserved Powered by www.wgrk.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com