
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
easing-animation-frames
Advanced tools
npm i easing-animation-frames
This is a tiny library for creating CPU-friendly easing animations with requestAnimationFrame API and Robert Penner's easing equations. Suggestions and pull requests for optimization are welcome.

Select an easing type (cubicInOut by default) and pass a callback function to run for every animation frame which manipulates target DOM elements.
// Template function
const updateBarWidth = ({ progress }) => {
// Update the DOM with the progress value
}
easingAnimationFrames({
template: updateBarWidth // Callback function to run for every frame, which receives progress from 0 to 1
});
// Template function
const updateBarWidth = ({
progress,
stopFrames, // Stops the animation
resumeFrames, // Resumes the animation
restartFrames, // Restarts the animation
}) => {
// Update the DOM with the progress value
}
easingAnimationFrames({
easingType: "quadInOut", // Easing function name
duration: 3000, // Animation duration in milliseconds
template: updateBarWidth, // Callback function to run for every frame, which receives progress from 0 to 1
complete: animationComplete, // Callback funciton to run on completion
});
Duration is set to be 4,000 milliseconds by default, which you can change. Once the animation starts, the callback function (template) receives the progress value (from 0 to 1) that you can use to render the animation. The example above uses (progress * 75)% for the width of the bar, based on the time passed.
npm start to see the example (Node v10.15.1+).
The template function also provides stop and resume functions, if you want to stop the animation before it completes and resume it.
React Easing Animation is a React HOC implementation of this library.
It uses requestAnimationFrame, which should be supported for most of the modern browsers.
FAQs
Lightweight library for creating animation
The npm package easing-animation-frames receives a total of 1 weekly downloads. As such, easing-animation-frames popularity was classified as not popular.
We found that easing-animation-frames 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.