
Product
Rubygems Ecosystem Support Now Generally Available
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
@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.
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's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.