Skip to content

Files

Latest commit

 

History

History
62 lines (45 loc) · 1.11 KB

no-unknown-animations.md

File metadata and controls

62 lines (45 loc) · 1.11 KB

Pattern: Unknown CSS animation

Issue: -

Description

This rule considers the identifiers of @keyframes rules defined within the same source to be known.

Examples

The following patterns are considered violations:

a { animation-name: fancy-slide; }
/**                    ↑
 *   This animation name */

a { animation: fancy-slide 2s linear; }
/**                    ↑
 *           And this one */
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 violations:

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 {}

Further Reading