1.1.752 • Published 7 years ago

vue-movie-clip v1.1.752

Weekly downloads
106
License
-
Repository
-
Last release
7 years ago

vue-movie-clip

Sequence of frames for vue.js

  <vue-movie-clip ref="my_movieclip" :auto-play="true" :init-frame="10" width="640px"
                             height="360px" type="canvas" v-show="true" :frame-time="frameTime"
                             :frame="frame" :frames="frames"
                             :loop="loop" :forward="forward"
                             @frame="onFrame" @play="onPlay" @stop="onStop">
             </vue-movie-clip>

###Usage

npm install vue-movie-clip --save
import VueMovieClip from 'vue-movie-clip'

###props:

width:String "640px"/"*px"
height:String "360px"/"*px"
type:String "canvas"/"dom"
autoPlay:Boolean true/false
frameTime:Number 50/(1+) 
frames:Array []/['xxx.jpg']
loop:Number 1/  -1 loop
forward:Boolean true/false
render true/false 是否渲染

###methods

update() 更新序列帧


play()
stop()
skipTo(frame:Number)
setFrameTime(frameTime:Number)

###Events

frame 
play
stop

###properties

playing:Boolean
frameTime:Number
forward:Boolean
width:String
height:String
1.1.752

7 years ago

1.1.751

7 years ago

1.1.75

7 years ago

1.1.741

7 years ago

1.1.74

7 years ago

1.1.731

7 years ago

1.1.73

7 years ago

1.1.72

7 years ago

1.1.71

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago