Framer动效02

Framer动效02_第1张图片


Framer动效02_第2张图片

程序如下:

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)