react-kinetictext-effect
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -366,3 +366,3 @@ (function (global, factory) { | ||
var velocitychildElement = document.getElementById(velocitychildElementId); | ||
var lastelementOpacity = parseInt(velocitychildElement.style.opacity); | ||
var lastelementOpacity = velocitychildElement !== null ? parseInt(velocitychildElement.style.opacity) : null; | ||
// | ||
@@ -369,0 +369,0 @@ return lastelementOpacity; |
{ | ||
"name": "react-kinetictext-effect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A React component for applying motion and style effects to HTML text.", | ||
@@ -5,0 +5,0 @@ "main": "react-kinetictext-effect.js", |
@@ -13,3 +13,3 @@ ## React Kinetictext Effect | ||
### Learn more | ||
See the demo at [http://www.uismithing.com/main/kinetictext](http://www.uismithing.com/main/kinetictext). | ||
See the demo at [http://www.uismithing.com/main/wares/kinetictext](http://www.uismithing.com/main/wares/kinetictext). | ||
@@ -16,0 +16,0 @@ ### Repository |
@@ -352,3 +352,5 @@ import React, {Component, PropTypes} from "react"; | ||
let lastelementOpacity | ||
= parseInt(velocitychildElement.style.opacity); | ||
= (velocitychildElement !== null) | ||
? parseInt(velocitychildElement.style.opacity) | ||
: null; | ||
// | ||
@@ -355,0 +357,0 @@ return lastelementOpacity; |
55048
1623