Modal and Carousel: only use setTimeout if there's a transition