Ancestor indicator animates smoother with spring
This commit is contained in:
parent
2bc1b8387e
commit
bc2886f7e2
|
@ -89,6 +89,7 @@
|
||||||
--media-outline-color: color-mix(in lch, var(--media-fg-color), transparent);
|
--media-outline-color: color-mix(in lch, var(--media-fg-color), transparent);
|
||||||
|
|
||||||
--timing-function: cubic-bezier(0.3, 0.5, 0, 1);
|
--timing-function: cubic-bezier(0.3, 0.5, 0, 1);
|
||||||
|
--spring-timing-funtion: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
@media (min-resolution: 2dppx) {
|
||||||
|
@ -447,6 +448,17 @@ kbd {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes slide-up-smooth {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(100%);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes position-object {
|
@keyframes position-object {
|
||||||
0% {
|
0% {
|
||||||
object-position: 50% 50%;
|
object-position: 50% 50%;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ancestors-indicator:not([hidden]) {
|
.ancestors-indicator:not([hidden]) {
|
||||||
animation: slide-up 0.3s both ease-out 0.3s;
|
animation: slide-up-smooth 0.3s both var(--spring-timing-funtion) 0.3s;
|
||||||
}
|
}
|
||||||
.ancestors-indicator[hidden] {
|
.ancestors-indicator[hidden] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
Loading…
Reference in a new issue