Assessment wanted for Sequencing animations. (Task-1)
Link to task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Sequencing_animations#starting_point
Link to my code:
Task-1: https://jsfiddle.net/EiNzp/oL0hntag/4/
Thanks
Assessment wanted for Sequencing animations. (Task-1)
Link to task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Sequencing_animations#starting_point
Link to my code:
Task-1: https://jsfiddle.net/EiNzp/oL0hntag/4/
Thanks
Congratulations, @EiN!
All three versions are correct. Which one do you like most?
I don’t know of any other variations that would do the same. You could use setTimeout()
on every animation and put the timing 2 seconds apart, but that wouldn’t make the animations dependent on each other. (Would look the same effect though)
Michael
Hello.
As always, thanks for checking out my code.
I probably liked the option using async and await the most, in any case, at this stage, this method seemed to me the most understandable and simple.