Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@jam3/gsap-promise
Advanced tools
A Promise wrapper around gsap / tweenlite.
var animate = require('gsap-promise')
Promise.all([
animate(element, 1.0, { x: 10 }),
animate(element, 1.0, { y: 10, delay: 0.5 })
]).then(function() {
console.log("all animations finished")
})
Note: Version 2.x uses global.Promise
(you will need to polyfill it yourself). If you want a promise implementation, switch to 1.x which defaults to using Bluebird.
This promisifies the TweenMax
methods: to
, from
, set
and fromTo
.
animate.to(element, duration, params)
animate.from(element, duration, from)
animate.set(element, params)
animate.fromTo(element, duration, from, to)
animate.staggerFromTo(element, duration, from, to, stagger)
animate.staggerFrom(element, duration, from, stagger)
animate.staggerTo(element, duration, to, stagger)
Matches the TweenMax methods by the same name, but returns a Promise for the onComplete event.
animate.all(element)
An alias for Promise.all
, which will trigger all tweens in parallel.
animate.killTweensOf(elements)
An alias for gsap.killTweensOf(elements)
.
animate(element, duration, params)
The default export is the same as animate.to
.
MIT, see LICENSE.md for details.
FAQs
a Promise wrapper around gsap / twenelite
The npm package @jam3/gsap-promise receives a total of 1 weekly downloads. As such, @jam3/gsap-promise popularity was classified as not popular.
We found that @jam3/gsap-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.