magnifico

1.0.0 • Public • Published

Magnifico

version 1.0.0 Simple way to add magnifying (zoom) feature to your page. If you have a lot of text or want to zoom-in on some picture with hovering mouse

Installation

npm i --save magnifico

Usage

 
// only provide values if you want to override defaults
 
var magnifico = require("./magnifico") ({
    scale: 1.5, // default 1.5
    borderRadius:"0", // default 5px
    background: "#aaa", // default white
    padding: "10px" // default 10
});
 
magnifico.forSelector("p .magnify"); // all with class .par
magnifico.forClassName("my-class");
magnifico.forTagName("p") // paragraph

Contribute

Feel free to create a pull request should you find a bug or want to extend the lib with new features.

Package Sidebar

Install

npm i magnifico

Weekly Downloads

13

Version

1.0.0

License

ISC

Unpacked Size

3.4 kB

Total Files

3

Last publish

Collaborators

  • jasofalcon