-
This rotation expression, but with slider control?
Hi guys,
Is it possible to have this expression below, powered by an slider control?
So if you would set the slider control to 1, it turns every second, if you would change the slider to 4, it would turn 4 times as fast.(I have a sort of abstract clock ticking, but at a specific moment I want the clock to turn faster)
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
Expression rotate faster a second from Loepzuiver on Vimeo.
wholeSecond = Math.floor(time);
rotateDuration = 0.2;
anglePerSecond = 6; // 360 / 60
startAngle = wholeSecond * anglePerSecond;linear(time, wholeSecond + 0.8, wholeSecond + 1, startAngle, startAngle + anglePerSecond)