Socket
Socket
Sign inDemoInstall

vue-ui-preloader

Package Overview
Dependencies
10
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-ui-preloader

![chrome_54Uk8Qpx8p](https://user-images.githubusercontent.com/54861487/86740454-4a074e00-c054-11ea-8d35-ddcb438982e7.png)


Version published
Weekly downloads
1.3K
increased by15.93%
Maintainers
2
Install size
594 kB
Created
Weekly downloads
 

Readme

Source

chrome_54Uk8Qpx8p

Codacy Badge Netlify Status

Language License NPM Package NPM Downloads Mentioned in Awesome-Vue

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

Keywords

FAQs

Last updated on 22 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc