美文网首页
Framer动效09

Framer动效09

作者: huangxiaohao | 来源:发表于2016-07-31 19:27 被阅读22次

    Screen.backgroundColor="fff"

    layerA=new Layer

    width:20

    height: 20

    backgroundColor: "red"

    borderRadius: 10

    x: Align.center(-50)

    y: Align.center

    layerA.animate

    properties:

    x:Align.center(+50)

    curve:"ease-in-out"

    repeat:1000

    time: 2

    layerB=new Layer

    width: 20

    height: 20

    borderRadius: 10

    backgroundColor: "blue"

    x: Align.center(+50)

    y: Align.center

    layerB.animate

    properties:

    x:Align.center(-50)

    curve:"ease-out-in"

    repeat:1000

    time: 2

    相关文章

      网友评论

          本文标题:Framer动效09

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