Framer motion 4 has depreciated useInvertedScale() It says to use the layout prop instead but it doesn’t seem to achieve the same effect. I’m trying to scaleX a parent div whiteout affecting the scale of the children. There is more going on in my animation but this is a simple breakdown parent scalesX but children should not scale. Answer Ok
Tag: framer-motion
Framer Motion – stale custom value – changing the custom value doesn’t trigger an update
Using framer-motion, I have an issue where updating the object I pass on the custom prop to the motion.div variants doesn’t trigger the expected style change. I created the following sandbox in order to demonstrate the issue: https://codesandbox.io/s/framer-motion-stale-custom-fibp5?file=/src/App.js My expectation is that when I toggle the theme – the circle’s on/off colors will immediately change based on the new theme.