1.1.2 • Published 11 months ago

@spongex/vue-image-zoom v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vue Image Zoom

Vue3 Component for click to zoom on images

Install to your existing project using:

npm i @spongex/vue-image-zoom

Include ECMAScript:

import { ImageZoom } from '@spongex/vue-image-zoom'

Include CommonJS:

const { ImageZoom } = require('@spongex/vue-image-zoom')

Adapted from: https://codeconvey.com/html-image-zoom-on-click/

Usage

\

Properties

  • id (optional) HTML Element ID
  • src (required) URL to image source
  • alt (optional) Alternate text for image
  • width (optional) Width of document image
  • height (optional) Height of document image
  • caption (optional) Caption for modal display

Changelog

1.1.2

  • Dependencies bump

1.1.1

  • Bumped dependencies
  • Updated Vue requirements to only ^3.0.0

1.1.0

  • Fixed maintaining aspect ratio when zooming in.
  • Slight CSS improvements
  • Bump Vite dev dep

1.0.0

  • Initial release
1.1.2

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago