Skip to content

Commit 6e36a82

Browse files
Merge pull request #26 from SANDHIYAPRIYADHARSHINI/fix/coin-flip-animation
[PR]: fix: coin lands flat after flip — rotateX offset corrected
2 parents d391373 + 0ea0791 commit 6e36a82

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)