1.0.3 • Published 2 years ago

non-linear-js v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago