Fixes #1238, Modal classnames are removed by .transition() when set in onStart