Easily add JellyScroll effect to your websites.
Run npm i jelly-scroll
or yarn add jelly-scroll
Just import it like <script src="https://unpkg.com/jelly-scroll/dist/browser/index.js"></script>
<!-- html -->
<script src="https://unpkg.com/jelly-scroll/dist/browser/index.js"></script>
<script>
JellyScroll("containerID");
</script>
// node
import { JellyScroll } from "jelly-scroll";
JellyScroll("containerID");
Advanced usage:
JellyScroll("containerID", {
friction?: .5, // recommended .5, sets jelly friction
strength?: 100 // recommended 100, sets jelly strenght
});
Feel free to use Github's features