This commit is contained in:
Janis
2022-10-29 16:53:39 +02:00
parent 23044c320d
commit 14079a997e

View File

@@ -16,19 +16,19 @@ function updateSubCount() {
function sub(subName) { function sub(subName) {
frame.style.animationName = "subAnimation"; frame.style.animationName = "subAnimation";
frame.style.animationDuration = "11s"; frame.style.animationDuration = "5s";
subCount.style.animationName = "backgroundSubAnimation"; subCount.style.animationName = "backgroundSubAnimation";
subCount.style.animationDuration = "11s"; subCount.style.animationDuration = "5s";
subCount.innerText = subName + " " + subCountNumber; subCount.innerText = subName + " " + subCountNumber;
setTimeout(() => { setTimeout(() => {
frame.style.animationName = "borderAnimation"; frame.style.animationName = "borderAnimation";
frame.style.animationDuration = "5s"; frame.style.animationDuration = "20s";
subCount.style.animationName = "backgroundAnimation"; subCount.style.animationName = "backgroundAnimation";
subCount.style.animationDuration = "5s"; subCount.style.animationDuration = "20s";
subCount.innerText = subCountNumber; subCount.innerText = subCountNumber;
updateSubCount(); updateSubCount();
}, 11000); }, 11000);