Parallax where artist has no images - run a check first

This commit is contained in:
James Barnsley
2017-01-19 08:05:20 +13:00
parent 2db860b86e
commit 99d27c2365
2 changed files with 4 additions and 2 deletions

View File

@ -122,7 +122,9 @@ export default class Parallax extends React.Component{
this.renderCanvas( image );
}
renderCanvas( image ){
renderCanvas( image = false ){
if (!image) return null
let self = this;
var canvasDOM = document.getElementById('parallax-canvas');

View File

@ -34,7 +34,7 @@
width: 100%;
height: 100%;
opacity: 0;
@include animate( 0.4s );
@include animate( 0.1s );
&.loaded {
opacity: 0.5;