Function tween

  • Standalone convenience method that functions identically to tween. You can use this to create tweens without needing to explicitly set up a Tweenable instance.

    import { tween } from 'shifty';

    tween({ from: { x: 0 }, to: { x: 10 } }).then(
    () => console.log('All done!')
    );

    Parameters

    Returns Tweenable

Generated using TypeDoc