0.1.0 • Published 4 years ago

vue-ui-loader v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

chrome_54Uk8Qpx8p

Netlify Status

Demo and playground

Live demo - https://vue-preloader.netlify.app/

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

# use yarn
yarn add 
# use npm
npm install --save 

Usage

In your main.js

import Vue from 'vue'

In your template

<template>
  <loader object="#ff7b00" 
    color1="#ffffff" 
    color2="#17fd3d" 
    size="5" 
    speed="2" 
    bg="#343a40" 
    objectbg="#999793" 
    opacity="100" 
    name="circular">
  </loader>
</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.)

Props

NameTypeDefaultDescription
namestring'spinner'decides the type of loader
objectstring'#ff9633'set the color of the loaders. hex or color
color1stringonly for circularset the color of the circular loader disk1. hex or color
color2stringonly for circularset the color of the circular loader disk2. hex or color
sizenumber5set the size of loader
bgstring'#343a40'set the color of the loader background. hex or color
objectbgstring'#999793'set the color of the loader object background. hex or color
opacitynumber80set the opacity of background

Author

© Vinayak sharma Hrishikesh Agarwal