fix: Register marquee animation in Tailwind config
The marquee scroll effect wasn't working because 'animate-marquee' was defined as an inline CSS class, not a Tailwind utility. Tailwind's JIT compiler strips unknown classes, so group-hover:animate-marquee was being removed at build time. Fix: Added 'marquee-scroll' keyframes and 'marquee' animation to tailwind.config.js theme.extend. Now 'animate-marquee' is a proper Tailwind utility that works with group-hover and responsive variants. Also removed the inline <style> block from Player.tsx since the animation is now handled by Tailwind.
This commit is contained in:
1 parent
a33df8a4ef
commit
a14ec40872
3 files changed
+10
-10
No files matched your search
@@ -12,7 +12,16 @@ export default {
|
||||
'lyria-accent': '#ff6b35',
|
||||
'lyria-text': '#e0e0e0',
|
||||
'lyria-muted': '#6b6b7b',
|
||||
}
|
||||
},
|
||||
keyframes: {
|
||||
'marquee-scroll': {
|
||||
'0%': { transform: 'translateX(0)' },
|
||||
'100%': { transform: 'translateX(-50%)' },
|
||||
},
|
||||
},
|
||||
animation: {
|
||||
'marquee': 'marquee-scroll linear infinite',
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
|
||||
Reference in new issue
Block a user