From 4cc67e35623f5a1f87ee61e0705af32cad901551 Mon Sep 17 00:00:00 2001 From: Matewoo <44673490+Matewoo@users.noreply.github.com> Date: Tue, 15 Sep 2026 14:29:42 +0200 Subject: [PATCH] adjust animation timing and reduce ad display duration --- frontend/public/src/vote.js | 2 +- frontend/public/style.css | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/public/src/vote.js b/frontend/public/src/vote.js index 087e3ec..caf0ba4 100644 --- a/frontend/public/src/vote.js +++ b/frontend/public/src/vote.js @@ -37,7 +37,7 @@ document.querySelectorAll('.emoji').forEach(button => { .then(response => response.json()) .then(data => { console.log('Success:', data); - showAd(4000, true); + showAd(3000, true); }) .catch((error) => { console.error('Error:', error); diff --git a/frontend/public/style.css b/frontend/public/style.css index 7459768..5ca8737 100644 --- a/frontend/public/style.css +++ b/frontend/public/style.css @@ -141,18 +141,18 @@ button.selected { } 20% { transform: translateX(-50%) scale(1); - opacity: 1; + opacity: 0.5; } 55% { - transform: translate(calc(-50% - 21vw), -210px) scale(1); - opacity: 0.8; + transform: translate(calc(-50% - 39vw), -80px) scale(1); + opacity: 0.5; } 75% { - transform: translate(calc(-50% - 39vw), -105px) scale(0.3); - opacity: 0; + transform: translate(calc(-50% - 39vw), -80px) scale(0.3); + opacity: 0.5; } 100% { - transform: translate(calc(-50% - 39vw), -105px) scale(0.3); + transform: translate(calc(-50% - 39vw), -80px) scale(0.3); opacity: 0; } }