vue-freeze-gif

*Vue component to play / pause gifs*
691 2
Install
npm install vue-freeze-gif
Latest Version:0.1.7
Vue:2
Last Updated:Sep 22, 2018
Links: GitHub  ·  npm
Maintainer: camwhite

Vue Freeze Gif

Vue component to play / pause gifs

demo

Installation

npm i -S vue-freeze-gif

Setup

import Vue from 'vue'
import VueFreezeGif from 'vue-freeze-gif'
import 'vue-freeze-gif/lib/vue-freeze-gif.css'

Vue.component('freeze', VueFreezeGif)

...

Usage

Once declared the freeze component takes a source prop refering to <img src="https://raw.githubusercontent.com/camwhite/vue-freeze-gif/HEAD/some.gif" />

<template>
  <freeze source="https://giphy.com/some.gif" />
</template>

The component is able to handle images of any MIME type in the case of dynamic rendering. It will also take on the dimensions of it's parent.

<template>
  <ul>
    <li v-for="image of images">
      <freeze :source="image.src" />
    </li>
  </ul>
</template>
<style>
li {
  width: 256px;
  height: 256px;
}
</style>

Contributing

clone and install

git clone https://github.com/camwhite/vue-freeze-gif.git && cd $_ && yarn install

edit the source component

vi src/components/Freeze.vue

running the dev server to try it out

yarn run serve

building the library

yarn run build:bundle

Related Packages

vue-freezeframe

Vue wrapper for freezeframe.js

2,805 1,427
vue-play

Play with your vue components.

30,825 957
vue-chill

Chill down Vue.js data watchers

3,559 3
@xmachines/play-vue-router

Vue Router 4/5 adapter for XMachines Universal Player Architecture

10,408

Version History

Version Released Vue License
0.1.7 ^2.5.17
0.1.6 ^2.5.17
0.1.5 ^2.5.17
0.1.4 ^2.5.17
0.1.3 ^2.5.17