🎨 フェードアニメーション実装

fadeIn(duration = 1000) { const start = performance.now(); const animate = (now) => { const elapsed = now - start; const progress = Math.min(elapsed / duration, 1); this.opacity = progress; if (progress < 1) { requestAnimationFrame(animate); } }; requestAnimationFrame(animate); }
Hello!