rolloc
v0.1.3
Published
A Javascript library to create a rolling spinner
Downloads
3
Readme
Rolloc
A Javascript library to create spin roller.
Installation
- Install
npm install rolloc # or yarn/pnpm
Basic Usage
HTML:
<div id="roller"></div>
JS:
import { createRolloc } from "rolloc"
const options = {
size: {
height: 400,
width: 400
},
rollOptions: {
duration: 5000
}
}
const rolloc = createRolloc("#roller", options)
Running the demo locally
git clone https://github.com/zuramai/rolloc.git
cd rolloc
pnpm install -r
# Run the js
pnpm run js:dev
# And run the demo site (vite)
pnpm run dev