rc-collapse
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -6,9 +6,7 @@ 'use strict'; | ||
}); | ||
var velocity = undefined; | ||
if (typeof document !== 'undefined' && typeof window !== 'undefined') { | ||
velocity = require('velocity-animate'); | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _velocityAnimate = require('velocity-animate'); | ||
var _velocityAnimate2 = _interopRequireDefault(_velocityAnimate); | ||
function animate(node, show, transitionName, done) { | ||
@@ -26,10 +24,10 @@ var ok = undefined; | ||
node.style.display = show ? 'block' : 'none'; | ||
(0, _velocityAnimate2['default'])(node, transitionName, { | ||
duration: 240, | ||
velocity(node, transitionName, { | ||
duration: 300, | ||
complete: complete, | ||
easing: 'easeInOutQuad' | ||
easing: 'ease' | ||
}); | ||
return { | ||
stop: function stop() { | ||
(0, _velocityAnimate2['default'])(node, 'finish'); | ||
velocity(node, 'finish'); | ||
complete(); | ||
@@ -36,0 +34,0 @@ } |
{ | ||
"name": "rc-collapse", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "rc-collapse ui component for react", | ||
@@ -60,2 +60,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
14850
295
1