Skip to content
Advertisement

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.

Advertisement