When use chrome or edge the first few clicks have a super lag during the scaling of images (after DOM loading asset) using GSAP library.
With firefox it doesn't happen, although I read around that the opposite often happens but I would rather do it in chrome to export it with electron.
The image is very heavy but the use is thought to be in a local machine (no internet) and I need a high resolution
1. Is there any way to preload the GSAP animation avoiding this terrible initial snap?
2. Why on firefox does it not do this? Is it a browser or library problem?
3. With css it doesn't do it however I lose the control of positions
Am i wrong with something? Can you help me with some suggestions?
Thanks
Here the demo https://animdrops.xyz/static/02-magnifier/
Here a basic example with the same problem: https://codepen.io/matt8629/pen/OJdJbXr