I have implemented a css transition that translates and scales text, which runs smooth on my computer but not on my phone (Android with Chrome browser), and I'm wondering why.
I've already changed my transition to use translate instead of left/top for positioning in the hope that it would improve performance, but it is till laggy (I reckon ~5fps at the end of the transition). Hence I'm wondering what factor makes my animation slow, is it the fact that it is vector graphics, the large amount of scaling, the fact that it happens during a page transition (I'm using swup), or something else.
Code
My transition:
transition: transform 1.5s
from (--big-me-x is around 50vw, and y around 50vh)
transform: translateX(-50%) translateX(var(--big-me-x))
translateY(-50%) translateY(var(--big-me-y))
scale(0.75);
to
transform: translateX(-50%) translateX(50vw) translateX(-18vh)
translateY(-75%) translateY(50vh)
scale(5);
Or see it online (it's fast now!).