
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@helpscout/motion
Advanced tools
A simple animation library for React
npm install --save @helpscout/motion
Start adding animations to any React component with the Motion
component:
import React from 'react'
import {Motion} from '@helpscout/motion'
import Zoolander from './components/Zoolander'
class App extends React.Component {
render() {
return (
<Motion
componentDidMount={fadeInAndMoveUp}
componentWillUnmount={fadeOut}
>
<Zoolander />
</Motion>
)
}
}
// Technically these animation callbacks can be writing in line.
// It's advisable to keep them as separate functions to make the code
// more readable.
function fadeInAndMoveUp({animate}) {
return animate({
opacity: [0, 1],
translateY: [-20, 0],
}).finished
}
function fadeOut({animate}) {
return animate({
opacity: [0, 1],
duration: 500,
easing: 'linear',
}).finished
}
For additional info on Motion, check out our documentation!
A big thanks to Julian Garnier for creating Anime.js, which powers the animations for Motion.
FAQs
A simple animation library for React
We found that @helpscout/motion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.