no-unknown-animations
Disallow unknown animations.
a { animation-name: fancy-slide; }/** ↑ * This animation name */
a { animation: fancy-slide 2s linear; }/** ↑ * And this one */Use this rule to avoid animation names that match no @keyframes rule. Browsers don’t run the animation.
This rule considers the identifiers of @keyframes rules defined within the same source or within the files specified in the referenceFiles configuration property to be known.
This rule supports 1 message argument: the unknown animation name.
Options
Section titled “Options”{ "no-unknown-animations": true}The following patterns are considered problems:
a { animation-name: fancy-slide; }a { animation: fancy-slide 2s linear; }a { animation-name: fancccy-slide; }@keyframes fancy-slide {}a { animation: linear 100ms fancccy-slide; }@keyframes fancy-slide {}a { animation-name: jump; }@keyframes fancy-slide {}The following patterns are not considered problems:
a { animation-name: fancy-slide; }@keyframes fancy-slide {}@keyframes fancy-slide {}a { animation-name: fancy-slide; }@keyframes fancy-slide {}a { animation: fancy-slide 2s linear; }a { animation: 100ms steps(12, end) fancy-slide; }@keyframes fancy-slide {}