1.2.1 • Published 3 years ago

vue-ui-preloader v1.2.1

Weekly downloads
416
License
MIT
Repository
github
Last release
3 years ago

chrome_54Uk8Qpx8p

Codacy Badge Netlify Status

Language License NPM Package NPM Downloads

NPM

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.

npm link - https://www.npmjs.com/package/vue-ui-preloader

Installation

# use yarn
yarn add vue-ui-preloader
# use npm
npm install --save vue-ui-preloader

Usage

In your main.js

import loader from "vue-ui-preloader";

Vue.use(loader);

In your template

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

Via CDN

CDN demo link - http://jsfiddle.net/8961cm0s/1/

In your index.html

<script src="https://unpkg.com/vue-ui-preloader"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-ui-preloader/dist/loader.css">

In your template

<div id="app">
  <loader object="#ff9633" color1="#ffffff" color2="#17fd3d" size="5" speed="2" bg="#343a40" objectbg="#999793" opacity="80" name="circular"></loader>
</div>

In your main.js

Vue.use(loader)

new Vue({
  el: '#app',
  components:{
  loader:loader
  }
});

Props

NameTypeDefaultDescription
namestring'spinning'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
speednumber2animation speed in seconds
disableScrollingbooleanfalsedisable page scrolling when preloader is open

Author

© Vinayak sharma Hrishikesh Agarwal

1.2.1

3 years ago

1.2.0

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.10

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago