User:Xeverything11/sandbox/styles.css: Difference between revisions
Page last edited 4 months ago by Xeverything11
Animation |
Overflow |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
@keyframes task-background { | @keyframes task-background { | ||
0% {background: var(--color-error- | 0% {background: var(--color-error-lightest1);} | ||
22% {background: var(--color-error- | 22% {background: var(--color-error-lightest2);} | ||
25% {background: var(--color-warning- | 25% {background: var(--color-warning-lightest1);} | ||
47% {background: var(--color-warning- | 47% {background: var(--color-warning-lightest2);} | ||
50% {background: var(--color-success- | 50% {background: var(--color-success-lightest1);} | ||
72% {background: var(--color-success- | 72% {background: var(--color-success-lightest2);} | ||
75% {background: var(--color-info- | 75% {background: var(--color-info-lightest1);} | ||
97% {background: var(--color-info- | 97% {background: var(--color-info-lightest2);} | ||
100% {background: var(--color-error- | 100% {background: var(--color-error-lightest1);} | ||
} | } | ||
Line 25: | Line 25: | ||
height: 1.5em; | height: 1.5em; | ||
width: 5em; | width: 5em; | ||
border-radius: 0.2em; | border-radius: 0.2em; | ||
vertical-align: middle; | vertical-align: middle; | ||
animation: task-background 16s infinite; | animation: task-background 16s infinite; | ||
overflow: hidden; | |||
} | } | ||
Latest revision as of 07:34, 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-lightest1);}
22% {background: var(--color-error-lightest2);}
25% {background: var(--color-warning-lightest1);}
47% {background: var(--color-warning-lightest2);}
50% {background: var(--color-success-lightest1);}
72% {background: var(--color-success-lightest2);}
75% {background: var(--color-info-lightest1);}
97% {background: var(--color-info-lightest2);}
100% {background: var(--color-error-lightest1);}
}
.tasks-group {
display: inline-block;
height: 1.5em;
width: 5em;
border-radius: 0.2em;
vertical-align: middle;
animation: task-background 16s infinite;
overflow: hidden;
}
.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);
}