@wonilsuh/motion-generator
v1.1.3
Published
Motion generator function for System 360
Downloads
7
Readme
motion-generator
This function generates duration and bezier curves that can be used in JavaScript.
@param {float} distance - the distance or amount of change in pixels, or percent in the case of fade.
@param {float} size - the size (area) of the element to be animated, in px^2. passing 20 will result in the standard speed.
@param {string} mode - ["move"|"scale"|"fade"].
@param {int} version - NOT USED IN THIS VERSION
@param {object} params - NOT USED IN THIS VERSION
@returns {object} returns an object that contains motion definitions.