A simple VueJS component for image magnifying / product zooming
1 min read
vue-magnifier
Vue Magnifier is free component for basic image zoom practices.
You can use it as follows:
<vue-magnifiersrc="default-image-source"src-large="large-image-source"></vue-magnifier>
To customize the look and feel of the component, just edit the vue component file, or the provided standalone vue-magnifier.scss or the vue-magnifier.css file.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test