# No important in keyframes Disallow `!important` declarations inside `@keyframes` blocks. ```css @keyframes fade { from { opacity: 0 !important; } /* ↑ * this !important */ } ``` Using `!important` inside `@keyframes` has no effect on animations — browsers ignore it. Its presence almost always indicates a copy-paste error or a misunderstanding of how CSS animations work. ## Options ### `true` The following are considered problems: ```css @keyframes fade { from { opacity: 0 !important; } to { opacity: 1; } } ``` ```css @keyframes slide { 0% { transform: translateX(0) !important; } 100% { transform: translateX(100px) !important; } } ``` The following patterns are _not_ considered problems: ```css @keyframes fade { from { opacity: 0; } to { opacity: 1; } } ``` ```css /* !important outside @keyframes is unaffected */ a { color: red !important; } ``` ## Prior art - [CSS Animations spec](https://www.w3.org/TR/css-animations-1/#keyframes): `!important` is ignored in keyframe declarations