0.0.6 • Published 6 years ago

vue-pie-spinner v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-pie-spinner

An SVG pie spinner for games

Requirements

  1. Use Vueify

Usage

app.js

import VuePieSpinner from 'vue-pie-spinner';

Vue.component('vue-pie-spinner', VuePieSpinner);

vue file

<vue-pie-spinner ref="spinner" @onSpin="spun()"></vue-pie-spinner>

methods: {
	spinIt() {
		this.$refs.spinner.spin();
	},
	spun() {
		// spun!
	}
}

You can access the spinner using a child reference, and call the spin method.

When the spin method animation is complete, the onSpin event will be emitted.

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago