初学Raphael

画布-Raphael

1.Raphael(zx,zy,width,heigth)  zx:坐标x    zy:坐标y 
2.Raphael(id,width,heigth)  id:dom上的ID

动画-Animation

Animation.delay([number])  动画延迟执行的事件 单位毫秒
Animation.repeat([number])  动画执行的次数

元素-Element

Element.animate()

Element.animate(params, ms, easing, callback)  
params:元素的最终属性  
ms:动画持续的时间  
easing:运动类型  
callback:运动成功后的回调函数
或
Element.animate(animation)  动画对象

Element.animateWith()

Element.animateWith(element, anim, params, ms, easing, callback)  
element:元素  
anim:要同步的动画
params:元素的最终属性  
ms:动画持续的时间  
easing:运动类型  
callback:运动成功后的回调函数
 或
Element.animateWith(element, anim, animation)   
element:元素  
anim:要同步的动画  
animation:动画对象

Element.attr()

赋值  Element.attr(name,value)
赋值  Element.attr({name:value})
取值  Element.attr(name)
取值  Element.attr([name]) 返回值数组
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Readme 根据 Raphael官网翻译过来的 http://raphaeljs.com/一方面是联系markd...
    半夕蝶阅读 2,725评论 3 4
  • 选择qi:是表达式 标签选择器 类选择器 属性选择器 继承属性: color,font,text-align,li...
    wzhiq896阅读 1,815评论 0 2
  • 1.JQuery 基础 改变web开发人员创造搞交互性界面的方式。设计者无需花费时间纠缠JS复杂的高级特性。 1....
    LaBaby_阅读 1,205评论 0 1
  • [本姑娘 - 打造男士小资生活,不止精致你的外表。] 本姑娘最近自己放了自己一个暑假,以小学生的最早时间开始放假,...
    本姑娘MissBen阅读 1,807评论 6 12
  • 谷雨,谷雨,大风起。上午尚晴空,转瞬天欲雨。 风起,风起,添凉意。深藏厚衣裳,又复身上披。
    殷七七阅读 307评论 1 0