爆炸动画
来源:互联网 发布:短信群发软件价格 编辑:程序博客网 时间:2024/04/28 09:52
<style>
.content{
width: 500px;
margin:0 auto;
}
.content .img1{
animation: zhazha 1s infinite;
}
.content .img2 {
animation: boom 1s 1;
}
@keyframes zhazha{
from{
transform: scale(0.8);
}to{
transform: scale(1.1);
}
}
@keyframes boom{
from{
transform: scale(0);
}to{
transform: scale(1);
}
}
</style>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/boom.js"></script>
</head>
<body>
<input type="button" class="btn" value="炸了炸了" />
<div class="content">
<p class="boom"></p>
<img class="img1" src="img/boom.jpg"/>
<img class="img2" src="img/booms.jpg"/>
.content{
width: 500px;
margin:0 auto;
}
.content .img1{
animation: zhazha 1s infinite;
}
.content .img2 {
animation: boom 1s 1;
}
@keyframes zhazha{
from{
transform: scale(0.8);
}to{
transform: scale(1.1);
}
}
@keyframes boom{
from{
transform: scale(0);
}to{
transform: scale(1);
}
}
</style>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/boom.js"></script>
</head>
<body>
<input type="button" class="btn" value="炸了炸了" />
<div class="content">
<p class="boom"></p>
<img class="img1" src="img/boom.jpg"/>
<img class="img2" src="img/booms.jpg"/>
</div>
<script>
$(function(){
$(".content").hide();
$(".btn").click(function(){
var time=3;
var set=setInterval(function(){
if(time>0){
$(".boom").text(time-- +"s");
$(".content").show();
$(".content .img2").hide();
}else{
$(".content .img1,p").hide();
$(".content .img2").show();
}
},1000);
})
})
</script>
阅读全文
0 0
- 爆炸动画
- AnimationDrawable 帧动画 爆炸特效
- AnimationDrawable逐帧动画--爆炸效果
- Android爆炸散落动画:ExplosionField开源
- unity3d添加子弹爆炸预制体动画
- MUI卸载动画——粒子爆炸
- 爆炸的动画特效含倒计时
- 爆炸
- 爆炸
- 爆炸
- Android有趣的爆炸散落动画view:开源ExplosionField
- Android有趣的爆炸散落动画view:开源ExplosionField
- Android 爆炸粒子动画-参考ExplosionField开源项目
- Android有趣的爆炸散落动画view:开源ExplosionField
- pygame编写飞机大战(9)-播放爆炸动画
- 《塔防类手游开发教程》 第八节 炮塔子弹与怪物碰撞添加爆炸动画
- 【MoveBoom 】Android View的拖动、碰撞判断、销毁和销毁爆炸动画
- 原子弹爆炸
- 直接插入排序(java版)
- Vuejs之路之--父子组件(未完待续)
- Elasticsearch系列(九)----使用Logstash-input-jdbc同步数据库中的数据到ES
- 开源 | 基于Python的人脸识别:识别准确率高达99.38%!
- SpringMVC开发入门讲义
- 爆炸动画
- 安卓使用SmsManager实现短信发送
- 错误解决Expression: !_running
- Object源码分析(一)-- clone方法
- Java面试问题总结
- HA运行原理详解
- 1004. 成绩排名 (20)--PAT乙级
- 悬浮广告
- 文章标题