Hey guys,
I need your help. I'm using a scrollTo animation for multitoggler in react. This toggler is inside the content.
When I clicked the first time it moved on the content, so I've added extra offsetY space. It looked okay, but when I clicked the second time this extra 150 create unnecessary space.
How to improve my code for better performance?
gsap.to(window, { duration: 2, scrollTo: { y: "#booth", offsetY: 150 } })