- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Makzan
- 48字
- 2025-04-04 20:55:44
Creating a card-flipping effect
Imagine now that we are not just moving the playing card around, but we also want to flip the card element, just like we flip a real playing card. By using the rotation
transform
function, it is now possible to create the card-flipping effect.