diff --git a/index.html b/index.html index 82c939e..e26db4b 100644 --- a/index.html +++ b/index.html @@ -148,13 +148,13 @@ 左边距: - - 100px - - 右边距: - - 50px - + + 100px + + 右边距: + + 50px + 字间距: 1px diff --git a/js/main.js b/js/main.js index 7ea7b75..c6e625f 100644 --- a/js/main.js +++ b/js/main.js @@ -39,6 +39,7 @@ class TeleprompterApp { this.updateTimeDisplay(); this.initializeScrollbar(); this.setupSidebarBehavior(); + this.setupLogoAutoFade(); // 每秒更新时间显示 setInterval(() => this.updateTimeDisplay(), 1000); @@ -551,6 +552,18 @@ class TeleprompterApp { // 保存更新函数到实例 this.updateScrollbar = updateScrollbar; } + + // Logo自动透明度设置 + setupLogoAutoFade() { + const logoWidget = document.querySelector('.logo-widget'); + if (logoWidget) { + // 5秒后自动降低透明度到70% + setTimeout(() => { + // logoWidget.style.transition = 'opacity 1s ease'; + logoWidget.style.opacity = '0.5'; + }, 5000); + } + } } // 添加CSS动画