简体   繁体   中英

Is there a way to detect whether the browser supports CSS3 animations or not?

I'm working on the task of web animations using CSS3, my reference is from http://tympanus.net/codrops/2011/12/07/splash-and-coming-soon-page-effects-with-css3/ , but there is a problem, not all browsers support CSS3 animations, is there a way to know the browser support or not support CSS3 animations?I want to detect it using Javascript/jQuery, PHP, or CSS itself. Please help. Thank you.

使用Modernizr ,它将CSS类添加到HTML,使您可以判断特定功能是否可用。

Found a short JS approach here.

Detecting_CSS_animation_support

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