might work
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
			
		||||
<!--PAGENAME=Hello, <template name="username">-->
 | 
			
		||||
<header class="user-index-header">
 | 
			
		||||
    <div class="user-index-header-text" id="headerText">
 | 
			
		||||
        <h1 class="user-index-h1">Hello, <span class="outlined-text"><template name="username"></template></span>.</h1>
 | 
			
		||||
@@ -6,14 +5,13 @@
 | 
			
		||||
    </div>
 | 
			
		||||
</header>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
    document.addEventListener("DOMContentLoaded", function () {
 | 
			
		||||
        const headerText = document.getElementById("headerText");
 | 
			
		||||
 | 
			
		||||
        window.addEventListener("scroll", function () {
 | 
			
		||||
            const scrollPosition = window.scrollY;
 | 
			
		||||
            const opacity = 1 - scrollPosition / 500; // Adjust the divisor for a smoother or faster fade
 | 
			
		||||
            const opacity = 1 - scrollPosition / 500;
 | 
			
		||||
 | 
			
		||||
            headerText.style.opacity = opacity.toFixed(2);
 | 
			
		||||
            headerText.style.transform = `translateX(${100 - opacity * 100}%)`;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user