任何人知道如何加载页面的其余部分完全(图像和一切)?
后开始CSS3动画我使用的延迟,现在来模仿它,但是这不是我要找的。
感谢
彼得
解决方案这已经超出了CSS的范围,但它是非常简单的使用jQuery做
$(文件)。就绪(函数(){/ *您在这里code * /}或详细了解这里=> api.jquery/ready/
将动画code中的一类,可以说.animation
然后调用元素的类,你希望用动画的JQuery .addclass()( api.jquery/ addClass / )
像这样
<脚本类型=文/ JavaScript的> $(文件)。就绪(函数(){ $(#元件到动画)addClass(动画); }); < / SCRIPT>Anyone know how to start a css3 animation after the rest of the page loads completely (images and everything)?
I am using a delay right now to mimic it but this is not what I'm looking for.
Thanks
Peter
解决方案That is beyond the scope of CSS, but it is quite simple to do with JQuery
$(document).ready(function() {/*You code here*/ }Or read more about it here => api.jquery/ready/
Place your animation code in a class, lets say .animation
Then call that class on the element you wish to animate using JQuery .addclass() (api.jquery/addClass/)
Something like this
<script type="text/javascript"> $(document).ready(function() { $("#element-to-animate").addClass("animation"); }); </script>
更多推荐
启动CSS3动画完成后,整个页面加载
发布评论