fancy-animation
v1.0.3
Published
Animate your web elements by using this packages because it helps to define an animation on an element with so less code.
Downloads
2
Maintainers
Readme
Fancy-animation
Animate your web elements by using this packages because it helps to define an animation on an element with so less code.
Code Example
import fa from 'fancy-animation';
const button = document.querySelector("button");
fa.animate(button, "active", {
class: "classname",
fromSize: "from size",
toSize: "to size",
properties: ["animation-property-1", "animation-property-2"],
origin: "transform-origin",
timeInMs: "animation time",
type: "animation type"
});
Thank you! Hope you'll love it