1.0.0 • Published 4 years ago
vue-simple-magnifier v1.0.0
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
usage
npm install vue-simple-magnifier
# or
yarn add vue-simple-magnifier
then add it to your vue application:
// add it to your vue application:
import VStickyElement from 'vue-sticky-element';
import Vue from 'vue';
Vue.use(VStickyElement);
then use it:
<template>
<img src="some-image-src" v-simple-magnifier>
</template>
1.0.0
4 years ago