mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-12 23:23:52 +08:00
Delay the loading state animation with fade in (#3089)
This commit is contained in:
parent
052d930d3d
commit
2719fb44e4
2 changed files with 17 additions and 1 deletions
|
|
@ -73,4 +73,20 @@
|
|||
100% {
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fade-in-delayed {
|
||||
animation: fade-in-delayed 100ms forwards;
|
||||
}
|
||||
|
||||
@keyframes fade-in-delayed {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
99% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ defmodule LivebookWeb.FileSelectComponent do
|
|||
|
||||
<div
|
||||
:if={@loading}
|
||||
class="grid grid-cols-2 lg:grid-cols-3 gap-2 mb-2 pb-2"
|
||||
class="grid grid-cols-2 lg:grid-cols-3 gap-2 mb-2 pb-2 opacity-0 animate-fade-in-delayed"
|
||||
role="status"
|
||||
aria-live="polite"
|
||||
tabindex="-1"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue