Open ddssff opened 3 years ago
+1 for this
Currently I have to say
transform $ translateX (other "-50%") transform $ translateY (other "-50%")
Instead of what do you have to say this?
I'm not sure I understand the question.
You wrote "Currently I have to say", but I'm not sure what the problem with the code transform $ translateX (other "-50%")
is. Is the problem that you have to use other
instead of pct
?
Yes that's it. other
is unsafe.
Currently I have to say
On the other hand,
transform $ translate (pct (- 50)) (pct (- 50))
works and is what you actually want, the two transforms above interfere with each other.