even faster
This commit is contained in:
		@@ -7,7 +7,7 @@ document.addEventListener('DOMContentLoaded', function () {
 | 
				
			|||||||
    function handleScroll() {
 | 
					    function handleScroll() {
 | 
				
			||||||
        // Calculate the opacity based on the scroll position
 | 
					        // Calculate the opacity based on the scroll position
 | 
				
			||||||
        var scrollFraction = window.scrollY / (document.documentElement.scrollHeight - window.innerHeight);
 | 
					        var scrollFraction = window.scrollY / (document.documentElement.scrollHeight - window.innerHeight);
 | 
				
			||||||
        var opacity = 1 - (scrollFraction*2);
 | 
					        var opacity = 1 - (scrollFraction*3.5);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Apply the opacity to the elements
 | 
					        // Apply the opacity to the elements
 | 
				
			||||||
        h1.style.opacity = opacity;
 | 
					        h1.style.opacity = opacity;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user