I am trying to set up some scroll-based animations using framer motion and react intersection observer. I would like to use the same animation for different sections on the same page as they scroll into view. I can get intersection-observer to work fine with some basic animation but I am not sure how to get it to work with useTransform. Here is a CodeSandBox which should explain better what I am after, and where I am going wrong. Any help would be very gratefully received.
https://codesandbox.io/s/motionintersect-25wz9?file=/src/App.js:449-504