Add animation when rendering the timeline to avoid glitches.