尝试使用 framer js 实用程序制作 phenakistoscope
Attempting tom make a phenakistoscope with framerjs utilities
This is a as far as I got. Im trying to make a Phenaniskope
bg = new BackgroundLayer
backgroundColor: "pink"
frame = new Layer
width: 250
height: 250
image: "images/phenakistoscope.png"
frame.center()
Utils.interval 1, ->
cycler = Utils.cycle([10, 20, 30, 40, 50])
frame.rotation = cycler()
我进行了一些快速更改并在评论中进行了解释:
http://share.framerjs.com/kr6mvm4y8xcl/
基本上,您将循环仪留在了区间内,所以每次都是 "reset",因此您会在第 10 轮停止。
希望对您有所帮助!
This is a as far as I got. Im trying to make a Phenaniskope
bg = new BackgroundLayer
backgroundColor: "pink"
frame = new Layer
width: 250
height: 250
image: "images/phenakistoscope.png"
frame.center()
Utils.interval 1, ->
cycler = Utils.cycle([10, 20, 30, 40, 50])
frame.rotation = cycler()
我进行了一些快速更改并在评论中进行了解释:
http://share.framerjs.com/kr6mvm4y8xcl/
基本上,您将循环仪留在了区间内,所以每次都是 "reset",因此您会在第 10 轮停止。
希望对您有所帮助!