Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.