Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@invisionag/iris-react-animation
Advanced tools
```js import Animation from '@invisionag/iris-react-animation'; ```
import Animation from '@invisionag/iris-react-animation';
A component that parses standardized Adobe After Effects animation data.
All additional props will be passed to it's container, which is react-image-container
by default.
Takes a javascript object representing an Adobe After Effects animation (E.g. from a JSON file).
import Animation from '@invisionag/iris-react-animation';
import animationData from './animation.json';
<Animation data={animationData} />
Sometimes it may be necessary to delay the start of an animation. For this purpose, the animation package ships with an AnimationDelay
component that stops any css or lottie animation in its children. Note that it will stop any animations, not just direct children. The default delay is 1000ms but can be configured by passing a delay
prop.
Example:
import Animation, { AnimationDelayer } from '@invisionag/iris-react-animation';
import animationData from './animation.json';
<AnimationDelayer delay={1000}>
<Animation data={animationData} />
</AnimationDelayer>
Note: The AnimationDelayer will only delay animations on mounting. It will not delay on updates
Use the children render prop to render the svg in a custom container.
Render prop params:
Animation
import Animation from '@invisionag/iris-react-animation';
import animationData from './animation.json';
<Animation data={animationData}>
{({ onRef }) => (
<div ref={onRef} />
)}
</Animation>
This lets you pass options directly to lottie. Should be used as an escape hatch if all else fails.
import Animation from '@invisionag/iris-react-animation';
import animationData from './animation.json';
<Animation data={animationData} lottieOptions={{ loop: false }} />
FAQs
```js import Animation from '@invisionag/iris-react-animation'; ```
The npm package @invisionag/iris-react-animation receives a total of 86 weekly downloads. As such, @invisionag/iris-react-animation popularity was classified as not popular.
We found that @invisionag/iris-react-animation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.