JSPM

kween

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q19630F
    • License MIT

    Simple tween library written in Typescript

    Package Exports

    • kween

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kween) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    kween-logo

    Get started

    Install

    npm install --save kween
    # or
    yarn add kween

    Use

    import { tween, bounceInOut } from 'kween'
    
    tween({
      duration: 1000, // in milliseconds
      ease: bounceInOut,
      onUpdate: (value, progress) => {
        // value is eased, progress is linear
        console.log(value, progress)
      },
    })