Vue-ui-preloader
Vue-Ui-Loader is a preloader component made with CSS transistions and animations.
Playground Website. Adjust the settings using the playground options. On the bottom of the page you will find the source code that you can directly use in your project or you can manually change the props.
Installation
Usage
In your main.js
In your template
note(you can either use the playground website to automatically get all the props set or you can set them manaully using the below prop list. You can also resort to not passing any prop, in this case the preloader will use default settings.)
Via CDN
CDN demo link - http://jsfiddle.net/8961cm0s/1/
In your index.html
In your template
In your main.js
Props
Name | Type | Default | Description |
---|---|---|---|
name | string | 'spinning' | decides the type of loader |
object | string | '#ff9633' | set the color of the loaders. hex or color |
color1 | string | only for circular | set the color of the circular loader disk1. hex or color |
color2 | string | only for circular | set the color of the circular loader disk2. hex or color |
size | number | 5 | set the size of loader |
bg | string | '#343a40' | set the color of the loader background. hex or color |
objectbg | string | '#999793' | set the color of the loader object background. hex or color |
opacity | number | 80 | set the opacity of background |
speed | number | 2 | animation speed in seconds |
Author
Vinayak sharma
Hrishikesh Agarwal