Framer动效03

2016-07-20  本文已影响30人  huangxiaohao

Screen.backgroundColor="#2dd7aa"

scroll=new ScrollComponent

width: 300

height:300

x: Align.center

y: Align.center

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

scrollHorizontal:false

borderRadius: 8

scroll.contentInset=

top:20

bottom:20

for i in [0..5]

layer=new Layer

parent: scroll.content

name:"Row #{i}"

width:260

height:80

x:20

y:90*i

backgroundColor:"#fff"

borderRadius:6

上一篇下一篇

猜你喜欢

热点阅读