raphael.js中repeat()的用法
来源:互联网 发布:oracle数据库网速 编辑:程序博客网 时间:2024/05/22 15:09
repeat()的用法
repeat()动画的重复次数,参数为数字。当参数为Infinity的时候表示无限次。
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>新建画布</title> <script type="text/javascript" src="raphael.js"></script> <!----></head><body><div id="papr"> <script> var paper = new Raphael("papr", 500, 500); var circle = paper.circle(350, 350, 100); circle.attr({ "stroke": "blue", "fill": "red" }); var animates = Raphael.animation( { "50%": {"r": 50, "fill": "green", "cx": 100, "cy": 100}, "100%": {"r": 100, "fill": "red", "cx": 350, "cy": 350} }, 1000, "bounce").repeat(Infinity);//repeat()在animation的第一参数即动画的最终样式用百分比表示的时候,才可以起作用。 circle.animate(animates); </script></div></body></html>
阅读全文
0 0
- raphael.js中repeat()的用法
- js中 background 的属性 image 和 repeat 的用法
- Pascal中repeat的用法
- raphael js 中set 的妙用
- Raphael.js API之 Animation.delay(),Animation.repeat(),Element.animateWith()
- Raphael JS(一)
- Raphael.animation()的巧妙用法
- Raphael(拉斐尔)画箭头的一些用法
- 强大的矢量图形库:Raphael JS
- 关于Raphael.js 的画圆弧
- angularjs的collection-repeat用法
- raphael.js菜鸟笔记(一)
- raphael.js菜鸟笔记(二)
- ng-repeat 在angularJS中用法
- raphael js 拖动图片的功能(对原例子的改动)
- JS中,window.clearInterval(repeat)不起作用
- 强大的js会图框架raphael-js
- Raphael.js和map.js鼠标移进时的事件
- Windows下C++多线程同步与互斥简单运用
- 微服务框架Finagle介绍 Part1: Future, Service, Filter
- 泛型
- angular2的ngfor ngif指令嵌套
- 安装两个jdk
- raphael.js中repeat()的用法
- CAP定理简单理解
- LW DLL注意的问题
- 计算机网络基础知识整理
- assert的用法
- Tomcat端口被占用问题的解决
- Python 内建异常描述
- IOS applicationWillResignActive
- unity-与Android交互(unity5、android studio)