Closed mattgperry closed 3 months ago
Currently, if any transform is non-default, all non-default transforms get included in the transform string:
transform
{ x: 0 } => "none" { x: 0, scale: 1.2 } => "translateX(0px) scale(1.2)"
This PR changes it so these no-op transforms are excluded.
{ x: 0 } => "none" { x: 0, scale: 1.2 } => "scale(1.2)"
This results in up to 30% faster effects in the way we have it configured inside Framer (where transforms might be provided as MotionValues but always stay at default values).
MotionValue
Currently, if any transform is non-default, all non-default transforms get included in the
transform
string:This PR changes it so these no-op transforms are excluded.
This results in up to 30% faster effects in the way we have it configured inside Framer (where transforms might be provided as
MotionValue
s but always stay at default values).