diff --git a/app/assets/v2/css/landing_page.css b/app/assets/v2/css/landing_page.css index d39afa9acdb..a56761d3ec4 100644 --- a/app/assets/v2/css/landing_page.css +++ b/app/assets/v2/css/landing_page.css @@ -276,9 +276,21 @@ body { display: none; } -#gc-tree img { - max-width: 100%; - will-change: transform; +#gc-tree { + text-align: center; +} + +#gc-tree .lines { + animation-play-state: running; +} + +#gc-tree .cls-4 { + animation-play-state: running; +} + +.pause-animation { + animation-play-state: paused !important; + -webkit-animation-play-state: paused !important; } .pricing-tiers-container { diff --git a/app/assets/v2/js/landing_page.js b/app/assets/v2/js/landing_page.js index 10b3c188916..2d76ec7ac89 100644 --- a/app/assets/v2/js/landing_page.js +++ b/app/assets/v2/js/landing_page.js @@ -2,9 +2,11 @@ scrollContainer = $('#landing_page_wrapper'); // Header and Nav $(document).ready(function() { + $('#gc-tree #tree-svg .lines').addClass('pause-animation'); + $('#gc-tree #tree-svg .cls-4').addClass('pause-animation'); + const $navbar = $('.navbar'); const $gcRobot = $('#gc-robot'); - const $gcTree = $('#gc-tree'); const followStateHeight = 500; let navFollowState = scrollContainer.scrollTop() > followStateHeight; @@ -20,7 +22,9 @@ $(document).ready(function() { navFollowState = false; } $gcRobot.css('transform', `translateY(${$gcRobot.parent()[0].getBoundingClientRect().top - 100}px)`); - $gcTree.css('transform', `translateY(${$gcTree.parent()[0].getBoundingClientRect().top / 2 - 50}px)`); + $('#gc-tree #tree-svg .lines').removeClass('pause-animation'); + $('#gc-tree #tree-svg .cls-4').removeClass('pause-animation'); + })); moveBackground({}); diff --git a/app/retail/templates/index.html b/app/retail/templates/index.html index 9e0515c7ec5..0c3d7be1a41 100644 --- a/app/retail/templates/index.html +++ b/app/retail/templates/index.html @@ -154,7 +154,7 @@