Wadda is the next generation image zooming technology utilizing Canvas technology to zoom into images. This allows user to have multiple levels of zoom without having multiple high definition images for each level of zoom.
ts “really” easy! use the normal image tag with title=”url_of_hd_image” so for example:
where foo.jpg is thumbnail image and foo_hd.jpg is the high defination image.
On your required event create the wadda object, like this:
- var wad = new Wadda(’thumb’, {
- lensSize: 150,
- xOff: 0,
- yOff: 0,
- fadeLens: true,
- zoom: 2
- });
where xOff is x-offset from mouse cursor and yOff is y-offset from mouse cursor, zoomis the initial zoom of image, lensRadius is the radius of lens and fadeLensenables/disables lens fade effect.
View Demo 1
View Demo 2
Want to try it yourself?
No hay comentarios:
Publicar un comentario
Gracias por tu comentario