Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent element (body) isn't my main content element #846

Open
Victor-esso opened this issue Feb 18, 2024 · 1 comment
Open

Parent element (body) isn't my main content element #846

Victor-esso opened this issue Feb 18, 2024 · 1 comment

Comments

@Victor-esso
Copy link

An option to define my parent element on my page

my main contents that are scrollable are not placed directly inside my body element, which makes it not scrollable. I need an option while initializing AOS that allows me specify what element is my parent element, so that the necessary event listeners can be attached to it

Example :

AOS.init({
offsetParent: document.querySelector('#main-body')
});

@jaques-tino
Copy link

哥,你找到替代方案了吗

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

No branches or pull requests

2 participants