I made a testimonials carousel and I wanted to integrate a springs react animation to it. I've only been working with spring react for a few days and this is an error I haven't seen before. Elements stack over each other. For my transitions I have:
const transitions = useTransition(current, item => item.key, {
from: { gridRow: '2', opacity: 0 },
enter: { opacity: 1 },
exit: { opacity: 0 },
})
I am aware that if I type position: absolute
instead of gridRow, the animation will work. However, this item I am trying to animate is in a grid container and when I use absolute it disrupts my entire design. Is there a way I could keep that gridRow and also make my animation work? codesandbox