Jquery plugin that use pure css to zoom on images, this enables you to zoom without loading bigger image
Branch: master
Clone or download
JafarAkhondali Merge pull request #3 from Nils-1st-retail/transformNesting
Changed offsetWidth/offsetHeight to use getBoundingClientRect
Latest commit 3378a35 Apr 12, 2018

README.md

Light-Zoom

JQuery plugin that use pure css to zoom on images, this enables you to zoom without loading bigger image and zoom even on gif images !


Demo

Installation: npm install lightzoom

Import usage:


    <link href="glassstyle.css" rel="stylesheet">
    <script src="lightzoom.js"></script>

Config usage:


    $(document).ready(function () {
        //Simple usage
        $('img.light-zoom').lightzoom();
        
        //customize
        $('img.light-zoom').lightzoom({
            zoomPower   : 3,    //Default
            glassSize   : 180,  //Default
        });
        
    });