The example is next to useless since it's so primitive. Anything more complex, and you end up developing your own library. Which you did, and linked.
So how is anime.js obsolete?
So how is anime.js obsolete?
the optional "lib" is just aliases to make vanilla js less verbose.
await is only used to build the non-blocking timeline: Think keyframes, not frames.
If you instead build the keyframes up front and give them to WAAPI/CSS then you won’t encounter stutters.
This is easily provable by adding some blocking JS into your code. Block the main thread for ten seconds after your first transition and see when that next await triggers. Your animation will run smoothly for 1 second and then the next chunk of your timeline won’t run for another 9.
Because `await setStyle` ain't it.