Vue Hover Zoom
Easy to use package for zoom image when hover on it with the mouse cursor
Getting started
- Install the package:
npm install vue-hover-zoom
- Import component:
import VueHoverZoom from 'vue-hover-zoom'
- Add component to components:
components: {
VueHoverZoom
}
- Use component in template
<vue-hover-zoom imageUrl="https://test.com/img.png"></vue-hover-zoom>
✅ Config
You can config VueHoverZoom Component with props.
You Can use multiple animations like: fade shrink
If you enable this, image shows when fully loaded
📌 Note
You can select the element in css and set image width.
default class: hover-zoom-image