@brizy/motion
v0.1.1
Published
Scroll, mouse Effects
Downloads
31
Readme
Brizy Motion
Simply library for mouse & scroll effects
Usage
In TS/JS import { Motions } from "@brizy/motion";
Usage
<h1 class="element">
Some Element
</h1>
import { Motions } from "@brizy/motion";
// usage
const element = document.querySelector(".element");
const options = {
type: "vertical",
direction: "down"
};
const motionInstance = new Motions(element, options);
// motionInstance.update(update options)