Skip to content

Files

Latest commit

 

History

History
25 lines (18 loc) · 331 Bytes

no-unused-keyframes.md

File metadata and controls

25 lines (18 loc) · 331 Bytes

Pattern: Unused @keyframes animation

Issue: -

Description

Disallows @keyframes animations that are not used within scoped CSS to avoid unused code.

Examples

<style scoped>
.item {
    animation-name: slidein;
}

/* ✗ BAD */
@keyframes unused-animation {
}

/* ✓ GOOD */
@keyframes slidein {
}
</style>