jQuery的万能动画函数
来源:互联网 发布:tv007网络电视手机版 编辑:程序博客网 时间:2024/05/22 12:58
<!DOCTYPE html><html><head> <title> new document </title> <meta charset="utf-8"> <style> img{position:absolute} </style></head><body><h1>练习:jQuery万能动画函数</h1><img src="img/1.jpg"><img src="img/2.jpg"><img src="img/3.jpg"><img src="img/4.jpg"><script src="js/jquery-1.11.3.js"></script><script> //找到所有img中第1个设置其left为0 //找到所有img中第2个设置其left为200px //找到所有img中第3个设置其left为400px //找到所有img中第4个设置其left为600px $("img").each(function(i){ $(this).css("left",i*200) }).click(function(){//为所有img绑定单击事件 //对当前img启动动画: //width->400,height->300,opacity->0 //2s //线性 //动画结束: 移除当前img $(this).animate( {width:400,height:300,opacity:0}, 2000, "linear", function(){//this->当前正在执行操作的对象 $(this).remove(); } ); });</script></body></html>
0 0
- jQuery的万能动画函数
- jquery的动画函数
- 万能的jQuery选择器
- jQuery 万能的选择器
- jquery自定义动画的函数切换函数
- jquery.animate自定义动画的函数
- 万能函数指针的实现
- jquery 动画函数
- jQuery动画函数
- JQUERY自定义动画函数
- jquery动画函数【鸡蛋】
- jquery动画函数
- JQUERY自定义动画函数
- JQuery动画函数总结
- jquery 动画效果函数
- jquery动画相关函数
- jQuery动画函数
- Jquery 动画函数详解
- 剑指Offer 16 反转链表
- linux基本命令和快捷键
- A
- L1-005. 考试座位号
- MySQL 性能优化 20多条
- jQuery的万能动画函数
- 串口通讯中断
- Linux文件目录简介
- c++中如何让程序等待一段时间
- Java 数组
- 算法导论 开放寻址法
- 在Myeclipse中查看Spring.Jar的源代码
- linux mysql的卸载
- 远程登陆WIN服务器