asscroll icon indicating copy to clipboard operation
asscroll copied to clipboard

Asscroll not working with scrolltrigger which consist horizontal scroll

Open RohitKS7 opened this issue 2 years ago • 1 comments

Hey, Asscroll team!

I love your product very much but recently when trying to use it in this codepen https://codepen.io/rohitks7/pen/BaYjgXY?editors=0010

it's not working at all. What am I doing wrong?

Can anybody help me! thanks in advance.

RohitKS7 avatar May 09 '22 05:05 RohitKS7

Hi @RohitKS7, there's no way of ASScroll knowing what element to use as the page.

You need to either pass it to the constructor options like: containerElement: document.querySelector(".site")

or add the attribute to the element in the HTML like: <div id="page" class="site" asscroll-container>

ashthornton avatar May 09 '22 09:05 ashthornton