{lyrics.map((line, index) => (
-
handleLyricClick(line.time)}
- className={`text-base leading-relaxed transition-all duration-300 break-words cursor-pointer hover:text-foreground px-2 ${
+ initial={false}
+ animate={index === currentLyricIndex ? { scale: 1, opacity: 1 } : index < currentLyricIndex ? { scale: 0.995, opacity: 0.7 } : { scale: 0.99, opacity: 0.5 }}
+ transition={{ duration: 0.2 }}
+ className={`text-base leading-relaxed transition-colors duration-200 break-words cursor-pointer hover:text-foreground px-2 ${
index === currentLyricIndex
? 'text-foreground font-bold text-xl'
: index < currentLyricIndex
@@ -671,7 +685,7 @@ export const FullScreenPlayer: React.FC = ({ isOpen, onCl
title={`Click to jump to ${formatTime(line.time)}`}
>
{line.text || '♪'}
-
+
))}
@@ -753,16 +767,27 @@ export const FullScreenPlayer: React.FC