elevatezoom icon indicating copy to clipboard operation
elevatezoom copied to clipboard

Elevate zoom not working for ajax contents.

Open malik3339 opened this issue 8 years ago • 1 comments

Greetings !

elevate zoom works fine when page is loaded. but when I loaded images with "jquery.append()" inside "ajax" call it does nothing.....

malik3339 avatar Jan 22 '18 11:01 malik3339

After load the image wit jquery.append(), call again to the elevateZoom() function whit your configuration, example:

$( "#elementID" ).empty(); $( "#elementID" ).append("<img id='yourImageID' src='https://hamza.es/assets/images/logo.png' data-zoom-image='https://hamza.es/assets/images/logo.png' alt=''>"); $("#yourImageID").elevateZoom({tint:true, tintColour:'#01714d', tintOpacity:0.5, scrollZoom : true });

hakiour avatar Apr 13 '18 13:04 hakiour