Remove all shaking animation features from the platform
Removed the CSS keyframes and animation classes related to shaking animations in client/src/index.css and conditional application of 'animate-shake' class in client/src/components/MainContent.tsx. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f8b8f0ea-e52e-4118-9b6b-e44184e17203 Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
@ -93,7 +93,7 @@ export default function MainContent() {
|
||||
</Badge>
|
||||
</div>
|
||||
)}
|
||||
<CardContent className="p-2">
|
||||
<CardContent className={`p-2 ${isErlingHaaland ? 'animate-shake' : ''}`}>
|
||||
<div className="flex items-center space-x-2">
|
||||
<div
|
||||
className={`w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center overflow-hidden cursor-pointer hover:ring-2 hover:ring-blue-400 transition-all ${
|
||||
|
||||
@ -137,36 +137,11 @@
|
||||
animation: float 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
0%, 100% {
|
||||
transform: translateX(0) rotate(0deg);
|
||||
}
|
||||
10%, 30%, 50%, 70%, 90% {
|
||||
transform: translateX(-2px) rotate(-1deg);
|
||||
}
|
||||
20%, 40%, 60%, 80% {
|
||||
transform: translateX(2px) rotate(1deg);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-shake {
|
||||
animation: shake 0.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.animate-float-shake {
|
||||
animation: float 3s ease-in-out infinite, shake 0.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.animate-float {
|
||||
animation: none;
|
||||
}
|
||||
.animate-shake {
|
||||
animation: none;
|
||||
}
|
||||
.animate-float-shake {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card-hover:hover {
|
||||
|
||||
Reference in New Issue
Block a user