mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
First production-stage scroll-driven animation
This commit is contained in:
parent
afb80d3dc6
commit
b17977a5c7
1 changed files with 15 additions and 0 deletions
|
@ -424,6 +424,16 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
@keyframes bye-banner {
|
||||
20% {
|
||||
transform: translateY(0);
|
||||
filter: blur(0) opacity(1);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(8px);
|
||||
filter: blur(16px) opacity(0.75);
|
||||
}
|
||||
}
|
||||
.sheet .account-container {
|
||||
border-radius: 16px 16px 0 0;
|
||||
overflow-x: hidden;
|
||||
|
@ -455,6 +465,11 @@
|
|||
margin-top: calc(-1 * var(--banner-overlap));
|
||||
}
|
||||
|
||||
.header-banner:not(.header-is-avatar):not(:hover):not(:active) {
|
||||
animation: bye-banner 1s linear both;
|
||||
animation-timeline: scroll();
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: -8px;
|
||||
padding-top: 1px;
|
||||
|
|
Loading…
Add table
Reference in a new issue