Better detection for CSS transitions, now works on IE.