vue-zoom-img

Show image zoom on selected event (click, hover, etc)
481,587
Install
npm install vue-zoom-img
Latest Version:1.0.2
Vue:2
License:ISC
Last Updated:Sep 21, 2021
Links: npm
Maintainer: louismazel

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

Version History

Version Released Vue License
1.0.2 ^2.6.12 ISC
1.0.1 ^2.6.12 ISC
1.0.0 ^2.6.12 ISC
0.1.9 ^2.6.12 ISC
0.1.8 ^2.6.12 ISC