Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Asscroll not working with scrolltrigger which consist horizontal scroll #83

Open
RohitKS7 opened this issue May 9, 2022 · 1 comment

Comments

@RohitKS7
Copy link

RohitKS7 commented May 9, 2022

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.

@ashthornton
Copy link
Owner

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>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants