0.3.2 • Published 3 years ago

vue-image-spinner v0.3.2

Weekly downloads
85
License
-
Repository
-
Last release
3 years ago

This package is unmantained, use vue-image-spinner-2 instead

vue-image-spinner

vue-image-spinner is simple javascript package made with vue js that allows you to use your own logo or image for spinner or loading indicator

Project setup

yarn add vue-image-spinner or npm i vue-image-spinner

usage

script

import {RotatingSpinner} from 'vue-image-spinner'
export default{
    components:{
        RotatingSpinner
    }
}

template

<RotatingSpinner src="https://s.gravatar.com/avatar/dad090f47a794da4dd624eee6d301aba?size=100&default=retro"/>
<RotatingSpinner :src="require(`@/assets/logo.png`)"/>

Spinner type

  • RotatingSpinner
  • ScaleUpSpinner
  • LinearRotatingSpinner
  • BreathingSpinner
  • JumpingSpinner

props

props nametypedefaultdescription
srcstring (required)noneyour image location, you can use image url, or use js require
topstring50%margin top, you can use % or px
overlaystring'rgba(255, 255, 255, 0.0)'(no overlay)overlay color, use rgba for transparent overlay
widthstring50pxyour image size

links

npm | vue-image-spinner2

0.3.2

3 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago