
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
postcss-magic-animations
Advanced tools
PostCSS plugin that adds @keyframes from Magic Animations

.animation {
animation-name: magic;
}
.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);
}
}
npm install postcss-magic-animations --save-dev
postcss([ require('postcss-magic-animations') ])
See PostCSS docs for examples for your environment.
Call plugin function to set options:
postcss([ require('postcss-magic-animations({atRoot: true})') ])
atRootDefines atRoot: true to prevent the @keyframes can be nested in a media queries
@media only screen and (min-width: 600px) {
.animation {
animation-name: magic;
}
}
@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);
}
}
FAQs
PostCSS plugin that adds @keyframes from Magic Animations
We found that postcss-magic-animations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.