启动CSS3动画完成后,整个页面加载

编程入门 行业动态 更新时间:2024-10-18 10:34:08
本文介绍了启动CSS3动画完成后,整个页面加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

任何人知道如何加载页面的其余部分完全(图像和一切)?

后开始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动画完成后,整个页面加载

本文发布于:2023-11-14 09:49:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   页面   动画   完成后

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!