diff --git a/js/eyecandy.js b/js/eyecandy.js index f779778..9c61f90 100644 --- a/js/eyecandy.js +++ b/js/eyecandy.js @@ -98,7 +98,7 @@ function resize() { var element = document.getElementById('demo-canvas'); - if(element.style.display != 'none') { + if(element.style.display == 'none') { animateHeader = false; } else { animateHeader = true;