Subtle peekaboo header for the scroll-driven

This commit is contained in:
Lim Chee Aun 2023-11-01 23:41:30 +08:00
parent d9dab6b5ee
commit 706f3f0cc8

View file

@ -1954,9 +1954,26 @@ meter.donut[hidden] {
/* ACCOUNT STATUSES */
@keyframes peekaboo-header {
from {
opacity: 0;
transform: translateY(10%);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.header-account {
font-size: 90% !important;
cursor: pointer;
@supports (animation-timeline: scroll()) {
animation: peekaboo-header 1s linear both;
animation-timeline: scroll();
animation-range: 0 150px;
}
}
.header-account div {
font-weight: normal;