
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
Anima.js - SCSS/SASS Animation library.
With Anima.js you can write compact code using the transitions and animations controlled from javascript.
npm:
npm install anima-js --save
yarn:
yarn add anima-js
import useAnima from "anima-js";
const App = ({ isVisible }) => {
const { anima } = useAnima();
return (
<anima.h1 className="title" state in={isVisible}>
Hello world
</anima.h1>
)
}
.title {
@include in {
opacity: 1;
transition: opacity .5s;
}
@include out {
opacity: 0.5;
transition: opacity .25s;
}
}
@mixin in {
&[class$="enter"] {
@content;
}
}
@mixin out {
&[class$="exit"] {
@content;
}
}
@mixin animation-in($animation: 1s 0s both) {
&[class$="enter"] {
$name: anima-#{unique-id()};
animation: #{$name} $animation;
@keyframes #{$name} {
@content;
}
}
}
@mixin animation-out($animation: 1s 0s both) {
&[class$="exit"] {
$name: anima-#{unique-id()};
animation: #{$name} $animation;
@keyframes #{$name} {
@content;
}
}
}
A callback that will fire when an animation starts.
onAnimaStart: (in: boolean, node: HTMLElement) => void
A callback that will fire when an animation has finished.
onAnimaDone: (in: boolean, node: HTMLElement) => void
A callback that fires before an animation starts.
If you want to use custom animation you need this method.
onAnimaTransition: (in: boolean, node: HTMLElement, done: Function) => void
Sometimes you need to use custom components.
const MyComponent = ({ children }) => (
<h1>{children}<h1>
)
<anima.custom component={MyComponent}>
Hello world
</anima.custom>
FAQs
Anima.js - CSS Animation library controlled by React-Transition-Group
We found that anima-js 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.