Closed ivodolenc closed 1 year ago
Adds new registerEases option that provides an easy way to register global eases.
registerEases
// nuxt.config.ts { gsap: { registerEases: [ { name: 'customEase', ease: progress => { return progress // linear } }, { name: 'customEase2' // ... } ] } }
Available globally
const { $gsap } = useNuxtApp() $gsap.to('.class', { x: 100, ease: 'customEase' }) $gsap.to('#id', { x: 200, ease: 'customEase2' })
Type of Change
Request Description
Adds new
registerEases
option that provides an easy way to register global eases.Register Eases
Available globally