1.0.3 • Published 6 months ago

non-linear-js v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago
import { Easing, EasingFunction } from '../lib/main'

document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
  <div class="animation">
  123
  </div>
`

const easing = new Easing()
const dom = <HTMLDivElement>document.querySelector('.animation')


easing.createEasing(EasingFunction.easeOutBack, (x: number) => {
    dom.style.transform = `translateX(${1000 * x + 'px'})`
}, 1000)
1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

0.0.0

6 months ago