New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

postcss-magic-animations

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-magic-animations

PostCSS plugin that adds @keyframes from Magic Animations

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

PostCSS Magic Animations Build Status

PostCSS plugin that adds @keyframes from Magic Animations

Screen

Input

.animation {
  animation-name: magic;
}

Output

.animation {
  animation-name: magic;
}
@keyframes magic {
  0% {
    opacity: 1;
    transform-origin: 100% 200%;
    transform: scale(1, 1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform-origin: 200% 500%;
    transform: scale(0, 0) rotate(270deg);
  }
}

Install

npm install postcss-magic-animations --save-dev

Usage

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

See PostCSS docs for examples for your environment.

Options

Call plugin function to set options:

postcss([ require('postcss-magic-animations({atRoot: true})') ])

atRoot

Defines atRoot: true to prevent the @keyframes can be nested in a ​media queries

Input

@media only screen and (min-width: 600px) {
  .animation {
    animation-name: magic;
  }
}

Output

@media only screen and (min-width: 600px) {
  .animation {
    animation-name: magic;
  }
}
@keyframes magic {
  0% {
    opacity: 1;
    transform-origin: 100% 200%;
    transform: scale(1, 1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform-origin: 200% 500%;
    transform: scale(0, 0) rotate(270deg);
  }
}

Thanks

Keywords

postcss

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts