Fix infinite animation iterations inside a group by shortcutting time

fraction calculation.