40 lines
1015 B
Plaintext
40 lines
1015 B
Plaintext
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @providesModule BrowserSupportCore
|
|
*/
|
|
var getVendorPrefixedName = require("./getVendorPrefixedName");
|
|
|
|
var BrowserSupportCore = {
|
|
/**
|
|
* @return {bool} True if browser supports css animations.
|
|
*/
|
|
hasCSSAnimations: function () {
|
|
return !!getVendorPrefixedName('animationName');
|
|
},
|
|
|
|
/**
|
|
* @return {bool} True if browser supports css transforms.
|
|
*/
|
|
hasCSSTransforms: function () {
|
|
return !!getVendorPrefixedName('transform');
|
|
},
|
|
|
|
/**
|
|
* @return {bool} True if browser supports css 3d transforms.
|
|
*/
|
|
hasCSS3DTransforms: function () {
|
|
return !!getVendorPrefixedName('perspective');
|
|
},
|
|
|
|
/**
|
|
* @return {bool} True if browser supports css transitions.
|
|
*/
|
|
hasCSSTransitions: function () {
|
|
return !!getVendorPrefixedName('transition');
|
|
}
|
|
};
|
|
module.exports = BrowserSupportCore; |