I have an image on my page. I also use a jQuery plugin to create a reflection effect on the image. The problem is when I change the image “src” attribute (using attr() jQuery function) to another image. The problem is that the plugin doesn’t recognize the new image. Instead, it does a reflection on the old image. I think that the plugin doesn’t recognize the changes in the DOM.
Do you know if there is a solution for this problem or how I would go about fixing it?
Have you tried applying the reflection again after you change the
srcattribute? If this is the reflection plugin you’re using, you should be able to do:The new reflection should replace the old reflection.