making sure the resize event fires after css transition