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

Animations already ran on page load #95

Open
sam98brown opened this issue Nov 30, 2021 · 0 comments
Open

Animations already ran on page load #95

sam98brown opened this issue Nov 30, 2021 · 0 comments

Comments

@sam98brown
Copy link

Hi. When I load my page, the first few elements already have their animations ran without scrolling. I guess this is because the elements haven't landed in their final positions on the page yet.

I've tried this but it doesn't fix the issue:

window.addEventListener('load', () => { this.sal.reset(); })

I've also tried adding the function call into a timeout but to no avail. Any help would be appreciated!

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

1 participant