Let the slider change transits useTransitionEnd option