https://github.com/pgalias/image.viewer
TypeScript Image Zoomer
https://github.com/pgalias/image.viewer
image image-zoomer javascript typescript zoomer
Last synced: 4 months ago
JSON representation
TypeScript Image Zoomer
- Host: GitHub
- URL: https://github.com/pgalias/image.viewer
- Owner: pgalias
- Created: 2017-01-09T12:49:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T14:59:00.000Z (almost 9 years ago)
- Last Synced: 2025-08-09T08:33:49.482Z (6 months ago)
- Topics: image, image-zoomer, javascript, typescript, zoomer
- Language: TypeScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript Image Zoomer
## [Demo](https://htmlpreview.github.io/?https://github.com/pgalias/image.viewer/blob/master/index.html)
## Description
Vanilla JavaScript image zooming plugin. Requires no dependencies
## Installing
- Via npm
`npm install -S image.viewer`
- Via cloning
`git clone https://github.com/pgalias/image.viewer`
## Usage
1. In your html file put `` before closing your body tag
2. In your js file put `iv.init(query, [options])`
## Options
| Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| **`overlayColor`** | String | *`#444`* | background-color of image overlay |
| **`easing`** | String | *`linear`* | Image zooming css-valid easing function |
## Caption
Zoomed image can has also a custom caption which will be visible on zoom. You only need to put into img tag data-iv-caption attribute with string value
### Changelog
See changelog
### LICENSE
MIT LICENSE - © Paweł Galias