2.0.1 • Published 7 years ago

postcss-extract-animations v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

postcss-extract-animations NPM Version NPM License

NPM Downloads Build Status Dependency Status devDependency Status

Extract inline @keyframes from your CSS rules so you can look at everything in one place.

Example

.a {
    animation: 1s @keyframes {
        to {
            opacity: 1;
        }
    }
}

becomes

@keyframes anim-c4fe818f {
    to {
        opacity: 1
    }
}
.a {
    animation: 1s anim-c4fe818f
}

Reducing the risk of drift since everything is contained within a single selector!

Usage

postcss([ require('postcss-extract-animations') ])

See PostCSS docs for examples for your environment.