简体   繁体   中英

Does IE9 support transition CSS3 effects?

I used below code for Page transition effect but that does not support IE9 browser. I must apply that effect in IE9 browser. so, what can i do?

-webkit-transition: all 1s ease;  
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;

CSS Transitions are not supported in IE9.

http://caniuse.com/#feat=css-transitions

Also, IE10 uses unprefixed transition. (so -ms-transition is of no use here)

Use Modernizr to detect if css transitions are supported, else fallback with jQuery Animate for all browsers (including IE9) that do not support CSS transitions.

if(!Modernizr.csstransitions) { // CSS ANimations Not supported.
//ADD YOUR CODE HERE
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM