Fredy
Fredy

Reputation: 2910

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.

Upvotes: 1

Views: 238

Answers (2)

Reactgular
Reactgular

Reputation: 54811

Found a short JS approach here.

Detecting_CSS_animation_support

Upvotes: 2

bradley.ayers
bradley.ayers

Reputation: 38392

Use Modernizr, it adds CSS classes to HTML that allow you to tell if specific features are available.

Upvotes: 6

Related Questions