-
Notifications
You must be signed in to change notification settings - Fork 219
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
Ch 3 - Animate the queue operations #118
Comments
@redblobgames to make it more intuitive we can add fade out transition for the nodes that are being popped out and provide a different queue that contains all the popped out nodes in the respective order. |
Animations are really tricky to implement, especially because we have both a “step” style (previous/next buttons) and a “random access” style (using the slider). D3 has an animation system that might make this easier, but we are not using D3 in this chapter. So the animation should probably be done with a finite state machine. I think before/after is making the reader compare the two to figure out where the changes are happening. Fade-out might work but I think we might want different animations for each diagram:
In all of these algorithms there are really two separate phases that could be animated in sequence:
|
From @Rishav159:
The text was updated successfully, but these errors were encountered: