Hello Experts,
I'm new with Gsap. I'm facing a problem that I can't solving. I'm working on a frontend project with html, sass, bootstrap and jQuery. For animation, I'm using Gsap. I've a section, where it has three unequal columns. Now I want to position them sticky. If I remove scroll smoother plugin, then sticky working perfectly. But If I add scroll smoother, then it's not working. In that case,, how can I use both scroll smoother and also position them sticky.
This is my current codes which has so many problems,, it's overlapping the bottom section
```
if (device_width >= 1200) {
if ($(".banner").length > 0) {
const metaElement = document.querySelector(".banner__meta");
const sidebarElement = document.querySelector(".banner__sidebar");
gsap.to(metaElement, {
scrollTrigger: {
trigger: metaElement,
start: "top-=160px top",
endTrigger: ".banner",
end: "bottom bottom",
pin: true,
pinSpacing: false,
markers: false,
},
});
gsap.to(sidebarElement, {
scrollTrigger: {
trigger: sidebarElement,
start: "top top",
endTrigger: ".banner",
end: "bottom bottom",
pin: true,
pinSpacing: false,
markers: false,
},
});
}
}
```
where .banner is parent and .banner__meta, .banner__content and .banner__sidebar are the uneual columns,, I want to position them such a way that normally css do.
I'll be thankful If anyone help me about this.
Thanks in advance.