Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue3-ui-preloader
Advanced tools
Vue3 preloader component made with CSS transistions and animations, easy to use, integrate and customize.
Remake made from: Vue-ui-preloader.
"overflowHidden"
class remained active after the first use.Live demo - https://vue3-ui-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/vue3-ui-preloader
Vue 3 blitz link - https://stackblitz.com/edit/vue-xxhtha?file=src%2FApp.vue
# use yarn
yarn add vue-ui-preloader
# use npm
npm install --save vue3-ui-preloader
Vue 3 blitz link - https://stackblitz.com/edit/vue-xxhtha?file=src%2FApp.vue
In your main.js
import { createApp } from 'vue'
import App from './App.vue'
import loader from "vue3-ui-preloader";
// Import the CSS or use your own!
import "vue3-ui-preloader/dist/loader.css"
const app = createApp(App)
app.component('loader', loader)
app.mount('#app')
In your template
<template>
<loader name="spinning" loadingText="Loading..." textColor="#ffffff" textSize="20" textWeight="500" object="#ff9633" color1="#ffffff" color2="#17fd3d" size="5" speed="2" bg="#343a40" objectbg="#999793" opacity="80" :disableScrolling="true"></loader>
</template>
NOTE: The best way to control the loader is to have a flag and use it in a
v-if
orv-show
statement.
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.
CDN demo link - https://jsfiddle.net/1t0jyeqh/10/
In your index.html
<script src="https://unpkg.com/vue3-ui-preloader"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue3-ui-preloader/dist/loader.css">
In your template
<div id="app">
<loader name="spinning" loadingText="Loading..." textColor="#ffffff" textSize="20" textWeight="500" object="#ff9633" color1="#ffffff" color2="#17fd3d" size="5" speed="2" bg="#343a40" objectbg="#999793" opacity="80" :disableScrolling="true"></loader>
</div>
In your main.js
const { createApp } = Vue
const app = createApp(loader)
app.mount('#app')
Name | Type | Default | Description |
---|---|---|---|
name | string | 'spinning' | decides the type of loader |
object | string | '#ff9633' | set the color of the loaders. hex or color |
loadingText | string | 'Loading...' | set the text of some loaders. |
textColor | string | '#ffffff' | set the color of the loadingText. hex or color |
textSize | number | '15' | set the size of the loadingText. |
textWeight | number/string | '800' | set the weight of the loadingText. (Ex: 800, bold) |
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 |
disableScrolling | boolean | false | disable page scrolling when preloader is open |
FAQs
Vue3 preloader component made with CSS transistions and animations, easy to use, integrate and customize.
The npm package vue3-ui-preloader receives a total of 31 weekly downloads. As such, vue3-ui-preloader popularity was classified as not popular.
We found that vue3-ui-preloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.