learnGitBranching icon indicating copy to clipboard operation
learnGitBranching copied to clipboard

Feature [Add a button to revert the animation ]

Open RaheemAmer opened this issue 2 years ago • 5 comments

Could you please add a button to revert the animation, cuz sometimes I need to repeat the whole thing again to summarize what I understood, so I end up returning to the previous page to repeat the animation all over again

I think this is gonna be a cool thing to add, feel free to share your opinion, and thank you so much for this amazing project 😄

Much appreciated 💟

RaheemAmer avatar Jun 09 '22 10:06 RaheemAmer

Hrm, yeah we have the ability to undo in the command line which snaps a tree back to a previous version. Seems like it would be possible to do the same here.

I'll leave this open for now -- it's a small-to-medium feature to implement (just need to add a button and manage some state in the git tree based on that). Hope someone volunteers!

pcottle avatar Jun 09 '22 15:06 pcottle

Thank you ❤️

RaheemAmer avatar Jun 09 '22 15:06 RaheemAmer

I assume it is the animation inside level demonstration.

If that is the case, the following image would solve the issue (play animation button changes to reset button).

after

Netz00 avatar May 02 '23 08:05 Netz00

I opened PR for issue here.

Netz00 avatar May 04 '23 18:05 Netz00

Thanks so much for submitting a PR! I'll go review it now

pcottle avatar May 04 '23 22:05 pcottle