-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
AnimeJS performance & the main-thread of JS #687
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
Comments
Read the code perhaps? It's open source. |
@yellow1912 that's what i did. That screenshot i posted is from the source code. |
@mesqueeb To answer your questions,
Anime is useful when you need to create complex animations. However, it is up to you, as a developer to animate responsibly and efficiently. |
If you are talking about the style recalculation that is anyways done when there is style change and is non blocking. Anime js uses animation frame, that is why it can provide such a good api to interact with. |
Uh oh!
There was an error while loading. Please reload this page.
I have looked everywhere on the website and in issues, but couldn't find a topic on this.
Since there is only the main-thread in JavaScript, the developer needs to optimise it so it won't ever block the UI interactions. Using direct CSS animations completely avoid even worrying about this.
My questions are:
I saw in the source code that animeJS basically modifies the dom elements -- I think -- directly like so:

But I'm not sure how I should reason if animeJS could ever block the UI and in what way. I have to be able to explain this before I can get permission to use AnimeJS 😅
The text was updated successfully, but these errors were encountered: