framer动效12

作者: huangxiaohao | 来源:发表于2016-08-19 13:32 被阅读35次

#设置屏幕颜色

Screen.backgroundColor="white"

#新建layerA层级

layerA=new Layer

x: Align.center

y: Align.center

width: 300

height: 300

backgroundColor: "pink"

#layerb是文字图层

layerB=new Layer

y: 567

x: 275

backgroundColor: "null"

html: 1

style:

textAlign:"center"

fontSize:"90px"

lineHeight:"180px"

#新建layerA的状态,使他旋转360度,并且圆角增大至150(变成圆形)

layerA.states.add

change:

rotation:360

borderRadius: 150

#设置layerA的状态变化动画,时间

layerA.states.animationOptions=

repeat: 1

curve: "ease-in-out"

time: 7

#layerA的状态切换

layerA.states.switch("change")

#监听layerA的旋转,并将0-360°转化为1-100

layerA.on "change:rotation",->

percentage=Utils.modulate layerA.rotation,[0,360],[0,100]

layerB.html=(Utils.round percentage,0)+"%"

相关文章

  • framer动效12

    #设置屏幕颜色 Screen.backgroundColor="white" #新建layerA层级 layerA...

  • Framer动效15

    今天照着framer官网的视频做了一个Facebook的Group的动效。 我们首先来看动效的几个点: Group...

  • Framer 动效15

    传送门 http://www.jianshu.com/p/dabd180b3620

  • Framer动效06

    # Import file "动效05" (sizes and positions are scaled 1:2)...

  • Framer动效03

    Screen.backgroundColor="#2dd7aa" scroll=new ScrollCompone...

  • Framer动效04

    Screen.backgroundColor="#7ddd11" page=new PageComponent x...

  • Framer动效02

    程序如下: Screen.backgroundColor="#28AFFA" constraints=new La...

  • Framer动效05

    Screen.backgroundColor="#877dd7" LayerA=new Layer width: ...

  • Framer动效07

    自己动手做的第一个动效,没有再跟着教程啦 这个动效是在安卓手机上刷知乎遇到的 很简单的material desig...

  • Framer动效09

    Screen.backgroundColor="fff" layerA=new Layer width:20 he...

网友评论

    本文标题:framer动效12

    本文链接:https://www.haomeiwen.com/subject/yksbsttx.html