Does IE9 support transition CSS3 effects?

泪湿孤枕 提交于 2020-04-20 13:04:22

问题


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;

回答1:


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
}


来源:https://stackoverflow.com/questions/25581081/does-ie9-support-transition-css3-effects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!