实现背景颜色(backgroundColor)的动画效果(animate)
来源:互联网 发布:软件测试工具使用 编辑:程序博客网 时间:2024/04/27 23:06
jquery.animate()没有backgrundColor的渐变动画,找到一个jquery.color.js插件。
jquery.color.js 下载:http://pan.baidu.com/s/1pJ2Wi7L 密码:oe1r
用法:
$(function(){var timer1=setInterval(function(){$('#div1').append("<div id='newC' style='width:300px; height:30px;'>我是新增的</div>")$('#newC').stop(false, true).animate({backgroundColor:'#F00'}, 500).animate({backgroundColor:'#FFF'}, 500)$('#newC').removeAttr('id');},2000);$('#cancel').click(function(){clearInterval(timer1);});});简单的实现了,新增数据的背景闪烁渐变的效果,已达到提醒哪条数据是新增的。
0 0
- 实现背景颜色(backgroundColor)的动画效果(animate)
- backgroundColor的背景颜色alpha透明度设置
- Activity切换时动画(animate)效果实现(overridePendingTransition)
- UITableViewCell通过cell.backgroundColor设置背景颜色为什么没有效果
- jquery animate实现动画效果
- jQuery 效果 - 动画(animate() 方法)
- 用js实现类似jquery里的animate动画效果
- Jquery使用animate实现css3的transform动画效果
- 实现背景颜色的渐变效果
- animate动画效果(泪奔的小孩)stop和delay的用法
- jquery的animate(简单动画)
- Cocos2d-x 动画(Animate)的制作
- jQuery animate 动画效果
- PopupWindow弹出框与背景变暗的实现(附带动画效果)
- jQuery动画效果2(animate移位效果/stop停止/delay延时效果)
- jQuery自定义动画函数animate() easing: "easeInOutCirc"导致的animate()动画抖动问题解决方法
- jquery的animate动画效果函数用JS代码是如何实现的
- 添加动画(Animate控件)
- 求一个集合的所有子集
- C语言、python、go、C#版本选择排序
- bootstrap学习之路
- 你完全可以把技术提高一个档次
- 软件开发环境
- 实现背景颜色(backgroundColor)的动画效果(animate)
- [Python]解释器的几种实现版本
- USACO 40 The Perfect Stall
- STL algorithm算法fill_n(15)
- 有用的链接(数据获取、项目管理)
- Java多线程(2)——多线程安全(传智播客毕老师视频讲解)
- hibernate4.3 与JPA结合实现数据库插入报错unable to build factory
- ios 使用 通讯录 picker 快速 拾取 用户 手机号码 代码分享
- Java将Unix时间戳转换成指定格式日期