vue-roller

vue-roller
Fluid and smooth rolling animation for Vue.js
Demo

Try out here with your own text!
Getting Started
npm i vue-roller@1.12.7
Vue3 (recommended)
npm i vue-roller
setup script
<script setup lang="ts">
import { Roller } from "vue-roller";
import "vue-roller/dist/style.css";
</script>
OR
src/main.ts (plugin)
import VueRoller from "vue-roller";
import "vue-roller/dist/style.css";
createApp(App).use(VueRoller)
Options
value (Required)
<Roller value="1234"></Roller>
Displays text.
default-value
<Roller default-value="1111"></Roller>
Sets the text to display when the page is first loaded (before the animation actually starts).
Must be included in char-set.
"" by default.
duration
<Roller :duration="1000"></Roller>
Sets the time for the animation to complete in millisecond(ms). 500 by default.
char-set
<Roller :char-set="number"></Roller>
<Roller :char-set="alphabet"></Roller>
<Roller :char-set="['😀', '😃', '😄']"></Roller>
Sets the list of characters used for the animation.
Preset: number, alphabet
Default: number
Event: animation-end
<Roller @animation-end="event"></Roller>
Call the event at the end of the animation.
Related Packages
@johnmorrisdotca/korokoro
Korokoro コロコロ — Dice roller with notation and exact odds: mixed dice, seeded...
3,196
1
Version History
| Version | Released | License |
|---|---|---|
| 2.1.0 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.12.7 | MIT | |
| 1.12.6 | MIT | |
| 1.12.5 | MIT | |
| 1.12.4 | MIT | |
| 1.12.3 | MIT | |
| 1.12.2 | MIT | |
| 1.12.1 | MIT | |
| 1.12.0 | MIT | |
| 1.11.2 | MIT | |
| 1.11.1 | MIT | |
| 1.11.0 | MIT | |
| 1.10.0 | MIT | |
| 1.9.0 | MIT | |
| 1.8.1 | MIT | |
| 1.8.0 | MIT | |
| 1.7.0 | MIT | |
| 1.6.6 | MIT | |
| 1.6.5 | MIT | |
| 1.6.4 | MIT | |
| 1.6.3 | MIT | |
| 1.6.2 | MIT | |
| 1.6.1 | MIT | |
| 1.6.0 | MIT | |
| 1.5.0 | MIT | |
| 1.4.0 | MIT |
Showing the latest 30 of 64. See every release on npm
Pre-releases (2)
| Version | Released | License |
|---|---|---|
| 2.0.0-beta.1 | MIT | |
| 2.0.0-alpha.35 | MIT |