I have a background that I want to update when the user hovers over an input using a transition. Works great in Chrome, but the transition is instantaneous in IE and Firefox regardless of what transition-duration I set.
CSS
body {
background: url( 'some_url.jpg' ) no-repeat center center fixed;
-webkit-transition: background 500ms ease-in-out 0s;
-moz-transition: background 500ms ease-in-out 0s;
transition: background 500ms ease-in-out 0s;
}
body.enhanced {
background: url( 'some_different_url.jpg' ) no-repeat center center fixed;
}
JS
jQuery( document ).on( 'mouseover focus', 'input' , function() {
jQuery( 'body' ).addClass( 'enhanced' );
} );