Hi,
I'm actually trying to accomplish this same thing in next.js, but I couldn't find how to write next js in codepen.
The problem is that the images are not moving to where I want them, but instead an 'element.style' gets added and transform the images to the totally wrong place. It's bad in codepen, but even worse in my next js app.
If I add
transform: transition(0,0) !important
or similar, the images get where they're supposed to be, but the animation is