Skip to content

Commit 0ea0791

Browse files
author
SANDHIYAPRIYADHARSHINI
committed
fix: coin lands flat after flip due to 90deg rotateX offset
1 parent d391373 commit 0ea0791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web-app/js/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ function initCoinFlip() {
746746

747747
function setCoinFace(isHeads, seed) {
748748
const targetY = isHeads ? 0 : 180;
749-
const flipX = 360 * (4 + (seed % 3)) + 90;
749+
const flipX = 360 * (4 + (seed % 3));
750750
const flipY = 360 * (3 + (seed % 2)) + targetY;
751751
coin.style.setProperty('--flip-x', `${flipX}deg`);
752752
coin.style.setProperty('--flip-y', `${flipY}deg`);

0 commit comments

Comments
 (0)