add simple loading state

This commit is contained in:
Danny 2018-06-05 11:51:09 +02:00
parent dd7a26241a
commit 20bb0e40cc
2 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class Chart extends Component {
render(props, state) { render(props, state) {
return ( return (
<div id="chart"></div> <div id="chart" class={state.loading ? 'loading': ''}></div>
) )
} }
} }

View File

@ -40,3 +40,7 @@
.fadeInUp { animation-name: fadeInUp; } .fadeInUp { animation-name: fadeInUp; }
.fadeInDown { animation-name: fadeInDown; } .fadeInDown { animation-name: fadeInDown; }
.loading {
opacity: 0.8;
}