NPM install magnifier commands inclusive direct download

Download or install the magnifier NPM package. At this webpage you will find all NPM packages. These NPM packages can be added to an online managed NPM project. Out of this project it is possible, to create a single compressed CSS or JavaScript file to avoid to much HTTP request on your website.

Index

NPM command for installing the latest version of magnifier

Please rate this library. Is it a good library? Are there some bugs?

All versions of magnifier with all dependencies

Files index.js
index.es5.js
Files index.js
index.es5.js
Files index.js
index.es5.js
Files index.js
index.es5.js
Files index.js
index.es5.js
Files index.es5.js
No informations.
No informations.
No informations.
No informations.
No informations.
No informations.
No informations.
No informations.
No informations.
No informations.

More infos about magnifier

magnifier Build Status

Magnifier an image

Install

npm install --save magnifier

Usage

import Magnifier from 'magnifier';

new Magnifier('.image');

API

new Magnifier(image)

Create a new Magnifier instance.

image

Type: element, string

Image for magnification.

.height(h)

h

Type: number, string

Lens height.

.width(h)

h

Type: number, string

Lens width.

.backgroundColor(color)

color

Type: string

Lens background color.

.borderColor(color)

color

Type: string

Lens border color.

.borderRadius(r)

r

Type: number, string

Lens radius.

.borderWidth(w)

w

Type: number, string

Lens border width.

.className(name)

name

Type: string

Lens class name.

.show()

Forced show lens.

.hide()

Forced hide lens.

.destroy()

Unbinds the event handlers and removes the lense.

License

MIT


The package magnifier contains the following files

/global-offset

  LICENSE
  README.md
  index.es5.js
  index.js
  package.json

/insert-after

  LICENSE
  README.md
  index.es5.js
  index.js
  package.json

/is-pointer-inside

  LICENSE
  README.md
  index.es5.js
  index.js
  package.json

/

  LICENSE
  README.md
  index.es5.js
  index.js
  package.json