1.0.2 • Published 3 years ago

vue-zoom-img v1.0.2

Weekly downloads
278
License
ISC
Repository
-
Last release
3 years ago

vue-zoom-img

license vue 2 npm npm Codacy grade

npm

Vue Zoom Img is a VueJS & NuxtJS drective to display a preview of a picture

Demo

Demo

npm install vue-zoom-img

# Or yarn add vue-zoom-img

How to use it

<template>
  <div>
    <img
      src="<PATH_OF_YOUR_PICTURE>"
      v-zoom-img="<PATH_OF_YOUR_PICTURE>"
    />
    <img
      src="<PATH_OF_YOUR_PICTURE>"
      v-zoom-img="{
        src: <PATH_OF_YOUR_PICTURE>,
        alt: '<ALT_STRING_VALUE>',
        disabled: <TRUE_OR_FALSE>,
        blur: <TRUE_OR_FALSE>,
        scale: <TRUE_OR_FALSE>
      }"
    />
  </div>
</template>

<script>
  import VueZoomImg from 'vue-zoom-img'

  export default {
    directives: {
      'zoom-img': VueZoomImg
    }
  }
</script>

LICENSE

MIT

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.1

4 years ago