美文网首页
Framer动效02

Framer动效02

作者: huangxiaohao | 来源:发表于2016-07-20 19:48 被阅读48次

    程序如下:

    Screen.backgroundColor="#28AFFA"

    constraints=new Layer

    width: 300

    height:150

    x: Align.center

    y:Align.center

    backgroundColor:"rgba(255,255,255,0.2)"

    LayerDrag=new Layer

    width: 150

    height:150

    x: Align.center(-75)

    y:Align.center

    backgroundColor: "#FFF"

    borderRadius: 4

    LayerDrag.draggable.enable=true

    LayerDrag.draggable.vertical=false

    LayerDrag.draggable.overdrag=true

    LayerDrag.draggable.bounce=true

    LayerDrag.draggable.monmentum=true

    LayerDrag.draggable.constraints=constraints.frame

    相关文章

      网友评论

          本文标题:Framer动效02

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