Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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 9 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.