New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-animate

Package Overview
Dependencies
Maintainers
2
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-animate - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4-beta.1

21

lib/animate.js

@@ -17,2 +17,4 @@ 'use strict';

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -25,3 +27,4 @@

var defaultState = {
animationWillEnd: false
animationWillEnd: false,
animationWillStart: false
};

@@ -47,5 +50,5 @@

_this.animationTimeout = setTimeout(function () {
_this.setState({
_this.setState(_defineProperty({
animationWillEnd: true
});
}, 'animationWillEnd', false));
}, parseFloat(durationSeconds) * 1000);

@@ -82,3 +85,9 @@ }, _temp), _possibleConstructorReturn(_this, _ret);

if (!!delaySeconds) {
this.setAnimationDelay(!!delaySeconds && startAnimation, delaySeconds);
if (!startAnimation) {
this.setState({
animationWillEnd: true
});
}
this.setAnimationDelay(!!delaySeconds, delaySeconds);
}

@@ -131,3 +140,5 @@

if (animationWillEnd || startAnimation && !delaySeconds) {
if (animationWillEnd && !startAnimation && delaySeconds) {
style = endStyle;
} else if (animationWillEnd || startAnimation && !delaySeconds) {
if (onCompleteStyle) {

@@ -134,0 +145,0 @@ style = onCompleteStyle;

{
"name": "react-simple-animate",
"version": "1.5.3",
"version": "1.5.4-beta.1",
"description": "react simple animate",
"main": "lib/animate.js",
"keywords": [
"react",
"animate"
],
"keywords": ["react", "animate"],
"scripts": {

@@ -11,0 +8,0 @@ "clean": "rimraf lib/",

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