0.0.13 • Published 5 years ago

vue-frame-animation v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

vue frame animation plugin

quick start

Install

npm install vue-frame-animation --save

Main.js

import vueFrameAnimation from 'vue-frame-animation'

Vue.use(vueFrameAnimation)

in your vue component

<vue-frame-animation></vue-frame-animation>

props

props:{
  width:{
    type:Number,
    require:true
  },
  height:{
    type:Number,
    require:true
  },
  bgImg:{
    type:String,
    require:true
  },
  position:{
    type:Array,
    require:true
  },
  wait:{
    type:Number,
    default:80
  }
}
//position like ['0 -854','-174 -852','-349 -852','-524 -852','-698 -852','-873 -848',]

methods

stop() //stop animation
start() // start animation