1.0.1 • Published 6 years ago

resize-image-map v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Responsive image maps

Whats This?

This ES6 class will let you have an responsive image map as seen in this demo.

Config

Pass the natural image with and height and the element ID as shown below:

new ImageResize({
  width: 1024,
  height: 768,
  element : '#power-puff__map'
})

Installation

npm i resize-image-map

import it in your app

import ImageResize from 'image-resize'