mirror of
https://github.com/Matewoo/tablet-web-survey.git
synced 2026-11-18 13:52:47 +01:00
adjust animation timing and reduce ad display duration
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user