Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@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'
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 | 🔜 Not started yet |
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.
The npm package @hypernym/animate receives a total of 0 weekly downloads. As such, @hypernym/animate popularity was classified as not popular.
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
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.