Update animation when the timeline changes the frame