resize-image-map

responsive image map


Keywords
responsive image map, es6, image, coordinates
License
ISC
Install
npm install resize-image-map@1.0.1

Documentation

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'