npm.io
3.0.0-alpha.5 • Published 3 years ago

vanilla-kinetic

Licence
MIT
Version
3.0.0-alpha.5
Deps
1
Size
154 kB
Vulns
0
Weekly
0

Vanilla Kinetic

Based on Dave Taylor's jQuery Kinetic - kudos!

vanilla-kinetic is a simple library which adds smooth drag scrolling with gradual deceleration and zooming to containers.

WARNING: This software is currently in beta state. No docs, missing features. Beware. Expect stable version soon. API will slightly change.

Usage

Basic

import { VanillaKinetic } from "vanilla-kinetic";

const container = document.getElementById("container");
const instance = new VanillaKinetic(container);
React

React wrapper will come soon.

Options

Docs coming soon.

Demo

Soon.

Compatibility

This library should work with every browser released after ~2017.

License

MIT