diff --git a/.gitignore b/.gitignore index 4e2a447..33f4965 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,5 @@ dist _config*.yml* yarn.lock + +.idea \ No newline at end of file diff --git a/source/js/animation.js b/source/js/animation.js index 0824e58..f147d8b 100644 --- a/source/js/animation.js +++ b/source/js/animation.js @@ -3,7 +3,7 @@ return Array.prototype.slice.call(document.querySelectorAll.apply(document, arguments)); } - if ($('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) { + if ($('.columns .column-right').length && $('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) { for (const child of $('.columns .column-right')[0].children) { $('.columns .column-right-shadow')[0].append(child.cloneNode(true)); }