TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Show HN: Prototyp – FramerJS based free prototyping
7 points
by
chinchang
almost 10 years ago
2 comments
nstart
almost 10 years ago
Collapse
On the output side for the demo, this is all I see<p><body><script src="../framer.js"></script><script>var imageLayer;<p>imageLayer = new Layer({ x: 0, y: 0, width: 128, height: 128, backgroundColor: 'lightgreen' });<p>imageLayer.center();<p>imageLayer.states.add({ second: { scaleX: 1.4, scaleY: 0.6 }, third: { y: 430, scaleX: 0.4, scaleY: 2 }, fourth: { y: 200, scaleY: 1.2 } });<p>imageLayer.states.animationOptions = { curve: 'spring(500,20,0)' };<p>imageLayer.on(Events.Click, function() { imageLayer.states.next(); });</script></body><p>that can't be right can it?
评论 #9934820 未加载
chinchang
almost 10 years ago
Unlike FramerStudio, Prototyp works on pure JavaScript.