Remove card vibration animation for specific content
Removed conditional logic for 'animate-shake' and 'animate-float-shake' classes in MainContent.tsx, simplifying animation to only 'animate-float' when articles are present. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f8b8f0ea-e52e-4118-9b6b-e44184e17203 Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
@ -75,11 +75,7 @@ export default function MainContent() {
|
||||
const hasArticles = articleCount > 0;
|
||||
const isErlingHaaland = outlet.slug === 'erling-haaland';
|
||||
|
||||
const animationClass = isErlingHaaland && hasArticles
|
||||
? 'animate-float-shake ring-2 ring-blue-400/30 shadow-lg'
|
||||
: isErlingHaaland
|
||||
? 'animate-shake'
|
||||
: hasArticles
|
||||
const animationClass = hasArticles
|
||||
? 'animate-float ring-2 ring-blue-400/30 shadow-lg'
|
||||
: '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user