File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
348348const featurePoints = document . querySelectorAll ( '#features .ftPoint' ) ;
349349const themeColorTag = document . querySelector ( 'meta[name="theme-color"]' ) ;
350350const heroEl = document . querySelector ( '#hero' ) ;
351- const footerEl = document . querySelector ( '#footer' ) ;
352351
353352function checkScrollAnimations ( ) {
354353
@@ -373,17 +372,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
373372
374373 }
375374
376-
377- if ( isPartlyInView ( footerEl ) ) {
378-
379- document . body . style . background = '#24262d' ;
380-
381- } else {
382-
383- document . body . style . background = '#1a1c24' ;
384-
385- }
386-
387375}
388376
389377function isFullyInView ( el ) {
@@ -399,17 +387,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
399387
400388}
401389
402- function isPartlyInView ( el ) {
403-
404- const rect = el . getBoundingClientRect ( ) ;
405- const elemTop = rect . top ;
406-
407- const isVisible = elemTop < window . innerHeight ;
408-
409- return isVisible ;
410-
411- }
412-
413390window . addEventListener ( 'scroll' , checkScrollAnimations ) ;
414391checkScrollAnimations ( ) ;
415392
You can’t perform that action at this time.
0 commit comments