Skip to content

Simple way to zoom in text and elements on your page on mouse hover

Notifications You must be signed in to change notification settings

janko-sokolovic/magnifico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple way to zoom in text and elements on your page on mouse hover

Resources

Stars

Watchers

Forks

Packages

No packages published