Skip to content

Commit

Permalink
disable reveal during static rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
rnosov committed Oct 19, 2016
1 parent 3642304 commit d83518c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-reveal",
"version": "0.0.2",
"version": "0.1.0",
"author": "Roman Nosov <rnosov@gmail.com>",
"description": "Easily add reveal animation to any React component",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Reveal extends Component {
if (this.props.effect) {
if (this.state.isHidden)
s.visibility = 'hidden';
else// if (this.state.isMounted)
else if (this.state.isMounted)
animation = ( className ? ' ' : '' ) + this.props.effect;
}
return (
Expand Down

0 comments on commit d83518c

Please sign in to comment.