【Framer源码分享】五色卡载入效果
杭州/产品设计师/8年前/151浏览
版权
【Framer源码分享】五色卡载入效果
五色卡加载动效
代码如下:
Framer.Info =
author: "Zen Young"
weichart: "176061249"
title: "五色卡加载"
colors = ["#dddfe6","#252c41","#f4f5f9","#6E7783","#aacfd0"]
#定义颜色
for i in [0..4]
layer = new Layer#新建层
width: Framer.Device.screen.width#读取屏幕宽度
height: Framer.Device.screen.height#读取屏幕高度
y: 100 * i + Framer.Device.screen.height#定义高度间距100
borderRadius:50#定义每个色卡的边角弧度
backgroundColor: colors[i]#读取已定义好的颜色
layer.animate#定义动效
properties:
y: 100 * i
delay: i * 0.2
time: .2
curve: "spring(200,30)"
0
Report
声明
收藏
Share
相关推荐
in to comment
Add emoji
喜欢TA的作品吗?喜欢就快来夸夸TA吧!
You may like
相关收藏夹
Log in
推荐Log in and synchronize recommended records
收藏Log in and add to My Favorites
评论Log in and comment your thoughts
分享Share





















































