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

Reduce the number of event listeners when a page has multiple animations #15

Open
75th opened this issue Feb 15, 2018 · 0 comments
Open
Assignees
Milestone

Comments

@75th
Copy link
Owner

75th commented Feb 15, 2018

Every ScrollAnimation and ParallaxAnimation yields two new event listeners, one for scroll and one for resize. I should probably make it so there's only one of each listener per page, that iterates over a global array of animation objects or something.

@75th 75th added this to the v1.0.0 milestone Feb 15, 2018
@75th 75th self-assigned this Feb 15, 2018
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