Animation added to slider.