Prevent child warping with inverseFlipId
masterWhen animating the scale of a parent element, children can appear warped. To prevent this, wrap the child in a Flipped component and provide an inverseFlipId matching the parent's flipId.
To limit the adjustment specifically to scale (allowing position to follow the parent), add the scale prop to the inverted Flipped component.
Note: The element with the inverse transform should lie flush against its parent container. Apply layout styles (padding, flexbox, etc.) to the inverted container rather than the parent Flipped container.
<Flipped flipId={id}>
<div>
<Flipped inverseFlipId={id} scale>
<div>some text that will not be warped</div>
</Flipped>
</div>
</Flipped>