Xeverything11 (talk | contribs)
Tweaks
Xeverything11 (talk | contribs)
Animation
Line 7: Line 7:
     97% {transform: translateY(2em); opacity: 1;}
     97% {transform: translateY(2em); opacity: 1;}
     100% {transform: translateY(0); opacity: 1;}
     100% {transform: translateY(0); opacity: 1;}
}
@keyframes task-background {
    0% {background: var(--color-error-lighter1);}
    22% {background: var(--color-error-lighter2);}
    25% {background: var(--color-warning-lighter1);}
    47% {background: var(--color-warning-lighter2);}
    50% {background: var(--color-success-lighter1);}
    72% {background: var(--color-success-lighter2);}
    75% {background: var(--color-info-lighter1);}
    97% {background: var(--color-info-lighter2);}
    100% {background: var(--color-error-lighter1);}
}
}


Line 14: Line 26:
     width: 5em;
     width: 5em;
     border: 1px solid black;
     border: 1px solid black;
    border-radius: 0.2em;
     vertical-align: middle;
     vertical-align: middle;
    animation: task-background 16s infinite;
}
}


Line 35: Line 49:
.task-cooking {
.task-cooking {
     animation-delay: 0s;
     animation-delay: 0s;
    color: var(--color-error-darker1);
}
}


.task-crafting {
.task-crafting {
     animation-delay: -4s;
     animation-delay: -12s;
    color: var(--color-warning-darker1);
}
}


.task-solving {
.task-solving {
     animation-delay: -8s;
     animation-delay: -8s;
    color: var(--color-success-darker1);
}
}


.task-building {
.task-building {
     animation-delay: -12s;
     animation-delay: -4s;
    color: var(--color-info-darker1);
}
}

Revision as of 07:32, 22 May 2025

@keyframes task-element {
    0% {transform: translateY(0); opacity: 1;}
    22% {transform: translateY(0); opacity: 1;}
    25% {transform: translateY(-2em); opacity: 1;}
    30% {transform: translateY(-2em); opacity: 0;}
    92% {transform: translateY(2em); opacity: 0;}
    97% {transform: translateY(2em); opacity: 1;}
    100% {transform: translateY(0); opacity: 1;}
}

@keyframes task-background {
    0% {background: var(--color-error-lighter1);}
    22% {background: var(--color-error-lighter2);}
    25% {background: var(--color-warning-lighter1);}
    47% {background: var(--color-warning-lighter2);}
    50% {background: var(--color-success-lighter1);}
    72% {background: var(--color-success-lighter2);}
    75% {background: var(--color-info-lighter1);}
    97% {background: var(--color-info-lighter2);}
    100% {background: var(--color-error-lighter1);}
}

.tasks-group {
    display: inline-block;
    height: 1.5em;
    width: 5em;
    border: 1px solid black;
    border-radius: 0.2em;
    vertical-align: middle;
    animation: task-background 16s infinite;
}

.tasks-group-inner {
    position: relative;
}

.task-element {
    display: flex;
    line-height: 1.5em;
    align-items: center;
    justify-content: space-evenly;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    animation: task-element 16s infinite;
}

.task-cooking {
    animation-delay: 0s;
    color: var(--color-error-darker1);
}

.task-crafting {
    animation-delay: -12s;
    color: var(--color-warning-darker1);
}

.task-solving {
    animation-delay: -8s;
    color: var(--color-success-darker1);
}

.task-building {
    animation-delay: -4s;
    color: var(--color-info-darker1);
}