Hey Folks, just trying to animate a clockhand which goes around the clock. BUT not with a linear animation, more with a stepped animation (every second the clockhand "clicks" one step forward).
Is this actually possible with the current state of framer.js?
Oh, also how do I achieve an infinite repeat of an animation?
Hey Anders - to do an infinite repeat of an animation use Utils.interval(time,function) time of course being how fast or slow you want the animation to execute. As for your first question.. I don't have a solution but I would think about how I would get the current position and be able to rotate and execute a function that would reposition the object. I would then use Utils.interval to execute it every second.
Ahh nice, thx for the tip! So I iterate the rotation every second by +1 and restart my animation every second.
yep, like this:line = new Layerline.width = 10line.originY = 1move = -> line.rotation += 5utils.interval(1,move)
So easy, Love it :) Thx guys (y)
That's it! Ha, sorry- haven't had my coffee yet.
Mind sharing the results when you are done Anders?
of course!!! :) Will make it available through github i think
So "watch" out guys :D