{ window.location.href = href }, 220); }, handleScroll(){ const currentY = window.scrollY; const diff = currentY - this.lastScrollY; if (currentY <= 50) { this.showHeader = true; // æä¸é¨ã§ã¯å¿ ã表示 } else if (diff > 5) { this.showHeader = false; // ä¸ã¹ã¯ãã¼ã«ï¼5px以ä¸ã®æåº¦ï¼ } else if (diff < -20) { this.showHeader = true; // ä¸ã¹ã¯ãã¼ã«ï¼20px以䏿»ã£ãæã ãåºãï¼ } this.lastScrollY = currentY; } }" x-init="window.addEventListen


{{#tags}}- {{label}}
{{/tags}}