I have enabled image lazy loading, but I don’t like the animation effect when images load. How can I cancel this transition animation and make them display directly?
I confirm that the transition animation is from Autoptimize – even after changing the theme, the effect remains. Other lazy loading plugins don’t have this transition animation, but I want to use Autoptimize. Please check this – thank you.
Sorry, I fell asleep yesterday. After testing, I found the problem. If an element has the CSS transition: all .3s ease; effect added, there will be an animation when the image appears. This should be related to how Autoptimize makes images appear. Is it possible to cancel the animation while keeping this CSS? Below is an example website:https://www.wlgooo.com/
OK, so that CSS is not in Autoptimize indeed, but you could try to unset transition on images that are lazyloaded by AO, e.g. with something like (might need tweaking, just an example);