Detect CSS3 with JQuery
Is there a way to detect whether a browser supports CSS3 transition开发者_开发百科s (-webkit-
, -moz-
, etc..) with JQuery?
You can use Modernizr css rule:
.csstransitions {
}
You can also use Isotope to achieve full hardware acceleration when possible, falling back to jQuery-based animation otherwise.
You can go for Modernizr to detect those as well as many other features you want to detect.
Note: You could also download custom version of Modernizr for the features you want to detect.
精彩评论