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

Board Rotation is confusing #173

Open
PKangu opened this issue Jun 17, 2024 · 0 comments
Open

Board Rotation is confusing #173

PKangu opened this issue Jun 17, 2024 · 0 comments

Comments

@PKangu
Copy link

PKangu commented Jun 17, 2024

Engine version: 0.0.1
Gui version: 0.0.1

Description

When rotating the whole board, an animation would make much easier to understand what's happening.

how to fix:

  • make the board rotate 90deg or whatever it needs to
  • use css transition on the whole board
  • apply inverted rotation on chess pieces to keep the orientation
  • same css trasition on the pieces
  • use the transition end event to react to it and substitute the rotated board with the logically rotated one with no rotation.
  • disable the transition to avoid another effect when doing so

Step to reproduce

  • click the rotate icon
  • get confused

Expected

  • see an animation when the board is rotating

Actual

  • instant update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant