Skip to content
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

Add animation to the cards in hand after playing a card #119

Merged
merged 3 commits into from
Dec 17, 2020

Conversation

oskarrough
Copy link
Owner

@oskarrough oskarrough commented Dec 13, 2020

Problem: you have 5 cards in hand. You play one. The flexbox "hand" now re-renders and the items jump into the new position. Looks sad.

This relies on the new (fantastic?!) "Flip" plugin from GSAP. But as the script is not released yet, I haven't included the dependencies in this PR yet. Keeping it ready for when the script is released by GSAP..

  • include gsap/flip (should also resolve the tests…)

Closes #118

@oskarrough oskarrough added the UI Styling and other things related to the game's UI/UX label Dec 13, 2020
@oskarrough oskarrough marked this pull request as ready for review December 17, 2020 21:21
@oskarrough oskarrough merged commit 9fb19dd into master Dec 17, 2020
oskarrough added a commit that referenced this pull request Aug 27, 2022
Add animation to the cards in hand after playing a card
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Styling and other things related to the game's UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve hand animations
1 participant