Skip to main content

keyframe-block-no-duplicate-selectors

Disallow duplicate selectors within keyframe blocks.

@keyframes foo { 0% {} 0% {} }
/** ↑
* This duplicate selector */

This rule is case-insensitive.

Options

true

The following patterns are considered problems:

@keyframes foo { 0% {} 0% {} }
@keyframes foo { from {} from {} }
@keyframes foo { from {} FROM {} }

The following patterns are not considered problems:

@keyframes foo { 0% {} 100% {} }
@keyframes foo { from {} to {} }