美文网首页
[framer学习]animation(4)

[framer学习]animation(4)

作者: Ludiwgbet | 来源:发表于2016-11-21 12:03 被阅读24次
layerA = new Layer
    x: 259
    y: 238

A = new Animation
    layer: layerA
    properties:
        x: 100
        opacity: 0.5
    curve: "bezier-curve(0.25, 0.1, 0.25, 1)"


animationB = A.reverse()

# Alternate between the two animations 
A.on(Events.AnimationEnd, animationB.start)
animationB.on(Events.AnimationEnd, A.start)

A.start()

相关文章

网友评论

      本文标题:[framer学习]animation(4)

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