options:
events:
Example1:
html:
<img src="gomer-small.jpg" id="homer" big="gomer.jpg"/>
js:
var loupe = { src: 'loupe2.png', x: 111, y: 109, radius: 103 } new Louper('homer', { radius: 30, loupe: loupe });
Example2:
html:
<img src="girl-thumb.jpg" id="girl"/>
js:
new Louper('girl', { big: 'girl.jpg', radius: 80, loupe: { src: 'loupe.png', x: 101, y: 102, radius: 85 }, onReady: function(){ this.loupeWrapper.setStyles({ left: this.smallSize.width - this.loupeSize.width + 60, top: this.smallSize.height - this.loupeSize.height + 120 }); } });
Example3:
html:
<img src="small.jpg" id="brain" big="big.jpg"/>
js:
var loupe2 = {//loupe image circle coords and radius src: 'loupe2.png', x: 111, y: 109, radius: 103 } new Louper('brain', { loupe: loupe2, radius: 100 });
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus