micha-lmxt/svelte-motion

Noticing a 1 pixel shift during animation...

rchrdnsh opened this issue · 1 comments

Hi! XD

Made a REPL animating grid-row on 3 elements...

https://svelte.dev/repl/41f41bce444c4c52b771ba66d7043c19?version=3.48

...and it works pretty well, except that when the animation is occurring I notice that the elements exhibit a subtle shift in width by maybe 1 or 2 pixels, then return to their original width again...

...it also seems as if the border-radius gets a little malformed as well, like it's gets elongated or something...

...it's small, but a little annoying...I wonder if there is anything that can be done, or if I am doing something incorrect...

Thank you!

I believe the issue it's that the scale correction (https://svelte-motion.gradientdescent.de/layout) is not working correctly at the moment. I try to fix but it is tricky.