@monokonet/scroll
v1.0.0
Published
A lightweight runtime for interpolated scrolling.
Downloads
15
Readme
@monokonet/scroll
A lightweight runtime for interpolated scrolling.
Install
pnpm add @monokonet/scrollUsage
import { createScroll } from '@monokonet/scroll';
const scroll = createScroll({
multiplier: 1.0,
duration: 0.77,
limit: 120.0,
});
scroll.watch(({ position, progress, distance, direction }) => {
console.log(position, progress, distance, direction);
});License
Apache-2.0
