@wonilsuh/motion-generator

1.1.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @wonilsuh/motion-generator

Weekly Downloads

0

Version

1.1.3

License

ISC

Last publish

Collaborators

  • wonilsuh