v-simple-magnifier

1.1.2 • Public • Published

v-simple-magnifier

a vue directive to use on img elements to zoom on hover

most of the credit goes to anthinkingcoder, I made my directive based on that

directive in action

Edit v-simple-magnifier

usage

npm install v-simple-magnifier
# or 
yarn add v-simple-magnifier

then add it to your vue application:

// add it to your vue application:
import VSimpleMagnifier from 'v-simple-magnifier';
import Vue from 'vue';

Vue.use(VSimpleMagnifier);

then use it:

<template>
  <img src="some-image-src" v-simple-magnifier>
</template>

Package Sidebar

Install

npm i v-simple-magnifier

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

30.8 kB

Total Files

6

Last publish

Collaborators

  • jdmnjd