Parallax where artist has no images - run a check first
This commit is contained in:
@ -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');
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
@include animate( 0.4s );
|
||||
@include animate( 0.1s );
|
||||
|
||||
&.loaded {
|
||||
opacity: 0.5;
|
||||
|
||||
Reference in New Issue
Block a user