动态效果分享

发布时间:2020-05-18 09:47:02

一、进入页面多少秒后消失

1.  setTimeout(function(){document.getElementById("shou_gif").style.display="none";},10000);

2.

$(document).ready(function(){        //页面加载完之后,自动执行该方法

setTimeout(function(){$("#shou_gif").hide();},14000);        //14秒后执行该方法

});

if (succ.style.display="block") {

setTimeout(function(){$("#succ").hide();},4000);         

}

二、当我们想动画延迟生效时,加上下面的代码则会延迟动画,时间可以自由调节

     animation-delay: 2s;

    -moz-animation-delay: 2s;

    -webkit-animation-delay: 2s;

三、持续时间

    animation-duration: 2s;

    -webkit-animation-duration: 2s;



【相关推荐】