-
Analog clock with inertial bounce on second hand
Hi everyone,
I’ve got an analog clock with an expression to make the seconds hand ‘tick’ every second. I’d like to add an inertial bounce to the motion of the seconds hand, but can’t seem to make any of the bounce expressions on the web work with a property that’s being driven by expressions rather than keyframes.
Any idea how I might be able to give the seconds hands a little bounce every time it ticks without having to keyframe the ticking of the seconds hand itself?
Thanks!
wholeSecond = Math.floor(time);
rotateDuration = 0.05;
anglePerSecond = 6; // 360 / 60
startAngle = wholeSecond * anglePerSecond;
linear(time, wholeSecond + 0.95, wholeSecond + 1, startAngle, startAngle + anglePerSecond);