mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Subtle peekaboo header for the scroll-driven
This commit is contained in:
parent
d9dab6b5ee
commit
706f3f0cc8
1 changed files with 17 additions and 0 deletions
17
src/app.css
17
src/app.css
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue