slider event handler code - able to jump to different commits in animation