Use setTimeout for CSS transitions rather than forcing reflows