开发者

Detect CSS3 with JQuery

开发者 https://www.devze.com 2023-04-10 12:10 出处:网络
Is there a way to detect whether a browser supports CSS3 transition开发者_开发百科s (-webkit-, -moz-, etc..) with JQuery?You can use Modernizr css rule:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消