adjust animation timing and reduce ad display duration

This commit is contained in:
Matewoo
2026-09-15 14:29:42 +02:00
parent 6cceb3f762
commit 4cc67e3562
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ document.querySelectorAll('.emoji').forEach(button => {
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
console.log('Success:', data); console.log('Success:', data);
showAd(4000, true); showAd(3000, true);
}) })
.catch((error) => { .catch((error) => {
console.error('Error:', error); console.error('Error:', error);
+6 -6
View File
@@ -141,18 +141,18 @@ button.selected {
} }
20% { 20% {
transform: translateX(-50%) scale(1); transform: translateX(-50%) scale(1);
opacity: 1; opacity: 0.5;
} }
55% { 55% {
transform: translate(calc(-50% - 21vw), -210px) scale(1); transform: translate(calc(-50% - 39vw), -80px) scale(1);
opacity: 0.8; opacity: 0.5;
} }
75% { 75% {
transform: translate(calc(-50% - 39vw), -105px) scale(0.3); transform: translate(calc(-50% - 39vw), -80px) scale(0.3);
opacity: 0; opacity: 0.5;
} }
100% { 100% {
transform: translate(calc(-50% - 39vw), -105px) scale(0.3); transform: translate(calc(-50% - 39vw), -80px) scale(0.3);
opacity: 0; opacity: 0;
} }
} }