diff --git a/web/themes/erabletheme/js/erabletheme.js b/web/themes/erabletheme/js/erabletheme.js index afb9875..ea905f7 100644 --- a/web/themes/erabletheme/js/erabletheme.js +++ b/web/themes/erabletheme/js/erabletheme.js @@ -375,7 +375,7 @@ function toggleBgMiddle(pageHeight) { const bgMiddle = document.querySelector('#bg-middle'); const bgOnze = document.querySelector('#bg-11'); - if (pageHeight < 2000) { + if (pageHeight < 2500) { bgMiddle.style.display = 'none'; bgOnze.style.display = 'none'; } else { @@ -383,6 +383,13 @@ bgOnze.style.display = 'block'; } } + + // + // bg parallax animation + // + var rellax = new Rellax('.bgImg', { + wrapper: 'body', + }); } } diff --git a/web/themes/erabletheme/templates/html.html.twig b/web/themes/erabletheme/templates/html.html.twig index 107c56b..c5b9827 100644 --- a/web/themes/erabletheme/templates/html.html.twig +++ b/web/themes/erabletheme/templates/html.html.twig @@ -31,6 +31,7 @@ {{ head_title|safe_join(' | ') }} + diff --git a/web/themes/erabletheme/templates/page/page.html.twig b/web/themes/erabletheme/templates/page/page.html.twig index c1a1bd7..a70b3bc 100644 --- a/web/themes/erabletheme/templates/page/page.html.twig +++ b/web/themes/erabletheme/templates/page/page.html.twig @@ -102,21 +102,21 @@
{# #} - - - + + + {# #}
{# #} - - - + + +
- - - + + +