Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 443 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 443 Bytes

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'