Promote version 682bd85 to main
Browse filesPromoted commit 682bd85a8457683b08dbec2413c891ab27f51aaa to main branch
script.js
CHANGED
|
@@ -47,8 +47,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 47 |
carousel.style.transform = `translateX(${-boxWidth * boxCount}px)`;
|
| 48 |
|
| 49 |
setTimeout(() => {
|
| 50 |
-
carousel.style.transitionDuration = '
|
| 51 |
-
carousel.style.transform = `translateX(${targetPosition}px)`;
|
| 52 |
}, 10);
|
| 53 |
|
| 54 |
// Final selection
|
|
@@ -78,8 +78,8 @@ carousel.style.transform = `translateX(${targetPosition}px)`;
|
|
| 78 |
selectedBox.querySelector('.box-lid').style.transform = '';
|
| 79 |
rollButton.disabled = false;
|
| 80 |
}, 3000);
|
| 81 |
-
},
|
| 82 |
-
});
|
| 83 |
|
| 84 |
function createCoinBurst(box) {
|
| 85 |
for (let i = 0; i < 12; i++) {
|
|
|
|
| 47 |
carousel.style.transform = `translateX(${-boxWidth * boxCount}px)`;
|
| 48 |
|
| 49 |
setTimeout(() => {
|
| 50 |
+
carousel.style.transitionDuration = '4000ms';
|
| 51 |
+
carousel.style.transform = `translateX(${targetPosition}px)`;
|
| 52 |
}, 10);
|
| 53 |
|
| 54 |
// Final selection
|
|
|
|
| 78 |
selectedBox.querySelector('.box-lid').style.transform = '';
|
| 79 |
rollButton.disabled = false;
|
| 80 |
}, 3000);
|
| 81 |
+
}, 4000);
|
| 82 |
+
});
|
| 83 |
|
| 84 |
function createCoinBurst(box) {
|
| 85 |
for (let i = 0; i < 12; i++) {
|