Two images, identical in size and position within dynamically sized divs based on user interaction through the jquery beforeAfter plugin.
I want to implement scroll zooming on these images using wheelzoom, so that zooming on one image will mirror the same amount and position on the other.
The challenge lies in linking event handlers effectively:
function onwheel(e){
//adjust image to fit zoom level ...
other_img.onwheel(e);
}
If direct linking isn't possible, is there a way to duplicate the event and redirect it to the second image?
This problem requires a solution using either jquery or native Javascript.
View the code here (disregard the handle).
EDIT: Any guidance on what approach could work would be greatly appreciated.