object-transit
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Utility for object values transition

Usage

import transit from 'object-transit';

const object = transit({ a: 0 }, console.log);

object.to(
  { a: 100 },
  {
    duration: 300
  }
);

Demo

https://sunify.github.io/object-transit/

Params

List of params

  • duration — duration in ms, defaults to 300
  • easing — simple easing function that takes one argument — time (from 0 to 1). Defaults to linear. You can use functions from eases or similar package
  • fps — defaults to 60
  • end — transition end callback

/object-transit/

    Package Sidebar

    Install

    npm i object-transit

    Weekly Downloads

    1

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    6.92 kB

    Total Files

    8

    Last publish

    Collaborators

    • sunify