
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.
tiny-tween-js
Advanced tools
Tiny Tween - A tiny (~5KB) JS Component for tweening values easily
Try it on Codepen

Using package managers
yarn add tiny-tween-js
# OR
npm install tiny-tween-js
And include in your JS
import TinyTween from 'tiny-tween-js' // ES6
OR
Manually add as script
<script src="//unpkg.com/tiny-tween-js"></script>
And get the exposed class:
new window.TinyTween
const tweenOptions = {
target: document.getElementById('example'), // Optional target for value changes
from: {'style.opacity': 0}, // FROM values to tween
to: {'style.opacity': 100}, // TO values to tween
duration: 2000, // In Milliseconds
loop: true, // Loop tween
yoyo: true, // Play forward and then reverse to inital value
autostart: false,
ease: 'easeInOutCubic', // Easing effect, default is Linear
onProgress: function(values){},
onComplete: function(){},
};
// ES6 Usage
import TinyTween from 'tiny-tween-js'
let tween = new TinyTween(tweenOptions);
// Vanilla Usage
let tween = new window.TinyTween(tweenOptions);
tween.play(); // Play tween from current state
tween.pause(); // Pause tween at current state
tween.stop(); // Stop playing and reset
tween.seek(0.50); // Set progress of tween
tween.destroy() // destroy instance to free memory
Easing functions Taken from https://gist.github.com/gre/1650294
FAQs
JS Component for tweening values easily
We found that tiny-tween-js 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.