react-responsive-carousel
Advanced tools
Comparing version 3.1.3 to 3.1.4
'use strict'; | ||
var has3d = require('./has3d'); | ||
module.exports = function (position, axis) { | ||
var _has3d = has3d(); | ||
var positionCss = axis === 'horizontal' ? [position, 0] : [0, position]; | ||
var transitionProp = _has3d ? 'translate3d' : 'translate'; | ||
var positionCss = axis === 'horizontal' ? [position, 0, 0] : [0, position, 0]; | ||
var transitionProp = 'translate3d'; | ||
if (_has3d) { | ||
// adds z position | ||
positionCss.push(0); | ||
} | ||
var translatedPosition = '(' + positionCss.join(',') + ')'; | ||
@@ -16,0 +8,0 @@ |
{ | ||
"name": "react-responsive-carousel", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "React Responsive Carousel", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
909916
1358