I'm trying to place a very simple scroll animation inside a Framer Motion div, something like this:
<motion.div
animate={{
translateY: [1000, 0]
}}
transition={{ duration: 1 }}
>
<BottomSection>
<ScrollDiv>
<Link to="scroll-down" spy={true} smooth={true} offset={50} duration={500}>
Scroll
</Link>
</ScrollDiv>
</BottomSection>
</motion.div>
<Space top="_360" bottom="_360" />
<Element name="scroll-down">
</Element>
enter code here
However, if I take my ScrollDiv and place it ouside the motion.div, the scroll works correctly. Is there some kind of incompatibility between these 2 libraries? How can I fix this?