my-imgzoom
0.1.0 • Public • Published LazyLoad
a component to zoom images
Installation
Usage
<div class="smallc">
<img id="smallimg" src="./images/userimg.jpg" alt="" data-big="./images/userimg-big.jpg" class="smallimg">
<div class="j-smallmask smallmask"></div>
</div>
import {ImgZoom} from 'my-imgzoom';
new ImgZoom({
smallc:'.smallc'
});
Params
Parameter |
Type |
Default |
Description |
data-big |
string |
|
attribute to store big image src |
smallc |
string |
|
small image selector,used in document.querySelector |
Dependencies (1)
Dev Dependencies (4)
Package Sidebar
Install
Weekly Downloads