Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TCotton/postcss-mq-keyframes

Open more actions menu

Repository files navigation

PostCSS postcss-mq-keyframes

Build Status Dependency Status devDependency Status npm version

This plugin will move any keyframe animations from inside media queries to the bottom of the CSS file.

See known issues on the caniuse.com page for CSS animation: 'IE10 and IE11 do not support CSS animations inside media queries.'

Input:

@media only screen and (min-width: 415px) {

    .pace {
        animation: pace-anim 5s;
    }

    @keyframes pace-anim {
        100% {
            opacity: 0;
        }
    }

}

Output:

@media only screen and (min-width: 415px) {

    .pace {
        animation: pace-anim 5s;
    }
}

@keyframes pace-anim {
    100% {
        opacity: 0;
    }
}

Install

$ npm install postcss-mq-keyframes --save-dev

Usage

postcss([ require('postcss-mq-keyframes') ])

See PostCSS docs for examples for your environment.

About

This plugin will move any keyframe animations from inside media queries to the bottom of the CSS file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.