slider = Math.round(effect("Slider Control")("Slider"));
sec = slider % 60;
min = Math.floor(slider / 60);
function addZero(n) {
return n < 10 ? "0" + n : n;
}
addZero(min) + ":" + addZero(sec);
Displays time in an HH:MM format using a slider control.
Contributed by:
Great for countdowns or time-based animations where hours and minutes are needed.