changes to fade out on scroll
This commit is contained in:
		@@ -19,9 +19,9 @@ document.addEventListener('DOMContentLoaded', function () {
 | 
			
		||||
        if (isInViewport(headerText)) {
 | 
			
		||||
            h1.classList.add('visible');
 | 
			
		||||
            h2.classList.add('visible');
 | 
			
		||||
        } else {
 | 
			
		||||
            h1.classList.remove('visible');
 | 
			
		||||
            h2.classList.remove('visible');
 | 
			
		||||
 | 
			
		||||
            // Remove the event listener after the first scroll
 | 
			
		||||
            window.removeEventListener('scroll', handleScroll);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user