JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6057
  • Score
    100M100P100Q121764F
  • License ISC

Show image zoom on selected event (click, hover, etc)

Package Exports

  • vue-zoom-img

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-zoom-img) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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