Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@hypernym/animate
Advanced tools
Highly-performant and lightweight JavaScript animation library.
Highly-performant and lightweight JavaScript animation library.
Repository | Package | Releases | Discussions
npm i @hypernym/animate
// UMD
const { animate } = window.Animate
// CJS
const { animate } = require('@hypernym/animate')
// ESM & TS
import { animate } from '@hypernym/animate'
🧑💻 🚧 🔜
The main Animate Core has a powerful feature-rich API written in TypeScript.
Also, the library has no dependencies, it is fully tree-shakeable and weights only ~7kb
min.
animate(targets, options)
⚠️ Some API changes are still possible before the first stable release.
import { animate } from '@hypernym/animate'
// Moves the target horizontally from 0 to 200px
animate('.class', {
x: [0, 200]
})
import { animate } from '@hypernym/animate'
// Animates the target on each tick
animate('#id', {
x: [0, 300],
duration: 2,
// progress is from 0 to 1
onUpdate: ({ instance, target, progress }) => {
target.innerHTML = `${Math.round(progress * 100)}%`
},
onComplete: ({ instance, target }) => {
target.innerHTML = `Complete`
console.log('The animation is complete.')
}
})
import { animate } from '@hypernym/animate'
// Creates a `stagger` effect, each element starts with a delay of 0.1s
animate('.el', {
x: 300,
delay: i => i * 0.1
})
import { animate } from '@hypernym/animate'
const el = document.querySelector('.el')
// Animates the target using the controls
const A = animate(el, {
x: ['0%', '30%'],
y: [0, 300],
opacity: [1, 0.5],
backgroundColor: '#00ff33',
duration: 3,
onStart: ({ instance, target }) => {
console.log('The animation has started.')
},
onComplete: ({ instance, target }) => {
console.log('The animation is complete.')
},
onCancel: ({ instance, target }) => {
console.log('The animation has been cancelled.')
}
})
setTimeout(() => {
A.pause()
}, 1000)
setTimeout(() => {
A.play()
}, 2000)
✅ Done | 🚧 In development |
A few things need to be completed before the first stable release:
Feel free to use the official discussions for any additional questions.
Developed in 🇭🇷 Croatia
Released under the MIT license.
© Hypernym Studio
FAQs
Highly-performant and lightweight JavaScript animation library.
We found that @hypernym/animate 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.