
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

A simple and minimal animation loop. Consistent frame rate's are achieved with requestAnimationFrame and high resolution timing.
This library is great for simple transition animations, thus the name, but can also be used for complex animations.
Usage:
const Animation = require('transient')
const el = document.getElementById('.my-element')
// Create the animation
var fadeIn = new Animation({
duration: 1500, // 1.5 seconds
draw: function (progress) {
// progress is an integer between 0 and 1
el.style.opacity = progress;
}
})
// Start the animation
fadeIn.start()
Options:
duration: The animation duration in milliseconds. default: 5000fps: Consistant frames per second for the animation. default: 60loop: Should the animation loop? default: falsedraw: The draw function which is called for each loop.onEnd: A function to call when the animation is finished.onCancel: A function to call when the animation is canceled. If this is not specified it will call the onEnd functionThis package's main export is perfect for handling single animations, but it also exports a loop for more complex work. A single
loop can be started for general animation use, and many Transient animation instances can be attached to one loop. Here is an example:
const Animation = require('transient')
const Loop = require('transient/loop') // or const Loop = Animation.Loop
// Only use one loop to syncronize the animations
var l = new Loop()
var moveBackground = new Animation({
duration: 1000 * 10, // 10s
animationLoop: l,
draw: function (progress) {
// Draw background
}
})
var moveForeground = new Animation({
duration: 1000 * 5, // 5s
animationLoop: l,
draw: function (progress) {
// Draw foreground
}
})
// Start the animations
moveBackground.start()
moveForeground.start()
FAQs
An animation loop implementation
We found that transient 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.