mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-09 08:10:53 +00:00
Merge pull request #785 from Stremio/refactor/route-switch-animations
fix(App): make route switching animation feel smoother
This commit is contained in:
commit
9c2cc0e7ff
1 changed files with 36 additions and 2 deletions
|
|
@ -6,13 +6,29 @@
|
|||
}
|
||||
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-duration: 100ms;
|
||||
animation-duration: 350ms;
|
||||
|
||||
@media (prefers-reduced-motion) {
|
||||
:local {
|
||||
animation-name: fade-in-no-motion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
|
||||
40% {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
|
||||
70% {
|
||||
opacity: 0.6;
|
||||
transform: translateY(0.2vh);
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
100% {
|
||||
|
|
@ -51,4 +67,22 @@
|
|||
|
||||
.slide-left-exit {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
@keyframes fade-in-no-motion {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
40% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
70% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue