
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@foundrykit/animation
Advanced tools
A collection of reusable animation components and utilities built with Framer Motion. Provides consistent, performant animations for React applications.
A collection of reusable animation components and utilities built with Framer Motion. Provides consistent, performant animations for React applications.
pnpm add @foundrykit/animation
import { FadeIn, Scale, SlideUp } from '@foundrykit/animation'
function MyComponent() {
return (
<div>
<FadeIn delay={0.2}>
<h1>Welcome</h1>
</FadeIn>
<Scale>
<button>Click me</button>
</Scale>
<SlideUp>
<p>This content slides up</p>
</SlideUp>
</div>
)
}
import { StaggerContainer, FadeIn } from '@foundrykit/animation'
function ListWithStagger() {
return (
<StaggerContainer staggerDelay={0.1}>
{items.map((item, index) => (
<FadeIn key={item.id}>
<ListItem item={item} />
</FadeIn>
))}
</StaggerContainer>
)
}
import { FadeIn } from '@foundrykit/animation'
function CustomAnimation() {
return (
<FadeIn
duration={0.8}
ease="easeOut"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
>
<div>Custom animated content</div>
</FadeIn>
)
}
import { Scale } from '@foundrykit/animation'
function ConditionalAnimation({ isVisible }) {
return (
<Scale
animate={isVisible ? "visible" : "hidden"}
variants={{
visible: { scale: 1, opacity: 1 },
hidden: { scale: 0.8, opacity: 0 }
}}
>
<div>Conditionally animated</div>
</Scale>
)
}
Smooth fade-in animation with configurable timing.
import { FadeIn } from '@foundrykit/animation'
<FadeIn delay={0.2} duration={0.6}>
<div>Fades in after 0.2s</div>
</FadeIn>
Props:
delay
- Delay before animation starts (default: 0)duration
- Animation duration in seconds (default: 0.5)ease
- Easing function (default: "easeOut")Scale animation with spring physics.
import { Scale } from '@foundrykit/animation'
<Scale>
<button>Scales in on mount</button>
</Scale>
Props:
scale
- Target scale value (default: 1)spring
- Spring configuration objectdelay
- Delay before animation startsSlide animation from bottom to top.
import { SlideUp } from '@foundrykit/animation'
<SlideUp distance={50}>
<div>Slides up 50px</div>
</SlideUp>
Props:
distance
- Distance to slide in pixels (default: 20)duration
- Animation duration (default: 0.5)ease
- Easing function (default: "easeOut")Container for creating staggered animations.
import { StaggerContainer, FadeIn } from '@foundrykit/animation'
<StaggerContainer staggerDelay={0.1}>
<FadeIn>Item 1</FadeIn>
<FadeIn>Item 2</FadeIn>
<FadeIn>Item 3</FadeIn>
</StaggerContainer>
Props:
staggerDelay
- Delay between child animations (default: 0.1)staggerChildren
- Whether to stagger children (default: true)All animations respect the user's motion preferences:
import { FadeIn } from '@foundrykit/animation'
// Automatically respects prefers-reduced-motion
<FadeIn>
<div>Accessible animation</div>
</FadeIn>
layout
prop for automatic layout animationsAnimatePresence
for exit animationsimport { FadeIn } from '@foundrykit/animation'
const customVariants = {
hidden: { opacity: 0, x: -100 },
visible: { opacity: 1, x: 0 }
}
<FadeIn variants={customVariants}>
<div>Custom animation</div>
</FadeIn>
import { useAnimation } from '@foundrykit/animation'
function CustomComponent() {
const controls = useAnimation()
const handleClick = () => {
controls.start({ scale: 1.1 })
}
return (
<motion.div animate={controls} onClick={handleClick}>
Click to animate
</motion.div>
)
}
When adding new animations:
MIT
FAQs
A collection of reusable animation components and utilities built with Framer Motion. Provides consistent, performant animations for React applications.
The npm package @foundrykit/animation receives a total of 33 weekly downloads. As such, @foundrykit/animation popularity was classified as not popular.
We found that @foundrykit/animation demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.