Use setTimout instead of observing transitionend, which is problematic when there are other transitions on the page, such as bootstrap buttons