Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-animation

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-animation - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

52

lib/index.js

@@ -6,3 +6,3 @@ 'use strict';

module.exports = function (node, transitionName, callback) {
var cssAnimation = function cssAnimation(node, transitionName, callback) {
var className = transitionName;

@@ -46,2 +46,50 @@ var activeClassName = className + '-active';

}, 0);
};
};
cssAnimation.style = function (node, style, callback) {
if (node.rcEndListener) {
node.rcEndListener();
}
node.rcEndListener = function (e) {
if (e && e.target !== node) {
return;
}
if (node.rcAnimTimeout) {
clearTimeout(node.rcAnimTimeout);
node.rcAnimTimeout = null;
}
Event.removeEndEventListener(node, node.rcEndListener);
node.rcEndListener = null;
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (callback) {
callback();
}
};
Event.addEndEventListener(node, node.rcEndListener);
node.rcAnimTimeout = setTimeout(function () {
for (var s in style) {
node.style[s] = style[s];
}
node.rcAnimTimeout = null;
}, 0);
};
cssAnimation.setTransition = function (node, v) {
['Webkit', 'Moz', 'O',
// ms is special .... !
'ms'].forEach(function (prefix) {
node.style[prefix + 'Transition'] = v;
});
};
cssAnimation.addClass = Css.addClass;
cssAnimation.removeClass = Css.removeClass;
module.exports = cssAnimation;

5

package.json
{
"name": "css-animation",
"version": "1.0.3",
"version": "1.0.4",
"description": "css-animation ui component for react",

@@ -39,4 +39,3 @@ "keywords": [

"rc-tools": "3.x",
"react": "0.13.x",
"node-dev":"2.x"
"react": "0.13.x"
},

@@ -43,0 +42,0 @@ "precommit": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc