Returns a MotionValue each for scaleX and scaleY that update with the inverse
of their respective parent scales.
This is useful for undoing the distortion of content when scaling a parent component.
By default, useInvertedScale will automatically fetch scaleX and scaleY from the nearest parent.
By passing other MotionValues in as useInvertedScale({ scaleX, scaleY }), it will invert the output
of those instead.
Returns a
MotionValueeach forscaleXandscaleYthat update with the inverse of their respective parent scales.This is useful for undoing the distortion of content when scaling a parent component.
By default,
useInvertedScalewill automatically fetchscaleXandscaleYfrom the nearest parent. By passing otherMotionValues in asuseInvertedScale({ scaleX, scaleY }), it will invert the output of those instead.