by xarn » Wed Dec 07, 2011 09:30
News:
Since there were requests to do so, I removed the zoom and added the borders.
To have all cards "fixed", I also had to remove the slow card rotation in favor of instant rotation.
(Explanation)
In order to rotate from 0 to 90 degrees and back, I used some morph capabilities of the new html5.
Moreover, this morph is active whenever the card change to another state. This includes when rotating but also the hover effect (on mouse over).
Putting borders instead made the same result: in a brief moment, all cards moved slightly due to the border appearing while the margin disappeared.
To solve that, I removed the morph altogether.
Future
I don't know if you like it or not. I could also re-enable the morph for the card flipping and you would see the small "all cards moving 1 pixel" while the border is drawn. All this is relatively easy to change, so I don't mind. Perhaps there would also be a way to enclose the cards into boxes so that a zoom/border/whatever wouldn't affect the other cards at all ...however, this requires a little more work, and, as it is a detail, is left for the future.
Current "easy" alternatives are:
- currently: instant borders + instant rotate (other cards fixed)
- before: slow zoom + slow rotate (other cards move)
- other: slow border + slow rotate (other cards move slightly)
- other: nothing + slow rotate (other cards fixed)
Feedback welcome