react-simple-animate
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -127,8 +127,14 @@ 'use strict'; | ||
className = _props3.className, | ||
transition = _props3.transition; | ||
transitionValue = _props3.transition; | ||
var style = startStyle; | ||
var transition = transitionValue ? transitionValue : durationSeconds + 's all ' + easeType; | ||
if (animationWillEnd) { | ||
style = onCompleteStyle ? onCompleteStyle : endStyle; | ||
if (onCompleteStyle) { | ||
style = onCompleteStyle; | ||
transition = null; | ||
} else { | ||
style = endStyle; | ||
} | ||
if (onComplete) this.onComplete(); | ||
@@ -145,3 +151,3 @@ } else if (startAnimation && !delaySeconds || delaySeconds && delayWillEnd) { | ||
style: _extends(_extends({}, style, { | ||
transition: transition || durationSeconds + 's all ' + easeType | ||
transition: transition | ||
})) | ||
@@ -148,0 +154,0 @@ }, |
{ | ||
"name": "react-simple-animate", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "react simple animate", | ||
@@ -5,0 +5,0 @@ "main": "lib/animate.js", |
21522
138