I use this plugin in my work: loupe | a jQuery image magnifier loupe | a jQuery image magnifier

But there is a problem, the images change dynamically and the magnifier because of this is a bit bazhit. The solution would be to delete the current loop and re-call the plugin. But I do not know how to correctly remove the current magnifying glass :(

Here is the generated code

 <div class="loupe" id="loupe" style="position: absolute; overflow: hidden; left: 220px; top: 319px; visibility: visible;"><img src="урл картинки скрыл" style="position: absolute; left: -313px; top: -424px;"></div> 

If I use remove (), then the div will be removed, but the plugin will no longer load. Can you tell me what to do?

  • one
    Why did you decide that the correct solution is to delete the current magnifier? It is better not to initialize it more than once in the image. - Zhukov Roman
  • jsfiddle.net/HappyCougar/ttyYU/show - Look, at the initiation of a magnifying glass appears under the cursor. Later when scrolling, she does not have time to crawl behind the cursor and remains somewhere below. It is impossible to move the magnifying glass to the cursor through its coordinates, as this causes a fierce hat to magnify. For one thing you can comment on my Hindu code. - Happy_Cougar

0