Is there a way to detect whether a browser supports CSS3 transitions (-webkit-, -moz-, etc..) with JQuery?
2 Answers
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.
1 Comment
Aamir Afridi
Modernizr to detect one feature?
-webkitand-mozare not CSS3. They are "vendor prefixes" which denote that the feature in question is either only partially supported or that the specification is incomplete. Many of the features which use these vendor prefixes are indeed part of the CSS3 spec, but equally many CSS3 features don't require vendor prefixes in the current browser versions.