Thomas G. Lopes commited on
Commit
a251d41
·
1 Parent(s): 5acf3a4

minor animation

Browse files
src/app.css CHANGED
@@ -27,6 +27,20 @@ html {
27
  font-size: 15px;
28
  }
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  @utility abs-x-center {
31
  left: 50%;
32
  @apply -translate-x-1/2;
 
27
  font-size: 15px;
28
  }
29
 
30
+ @theme {
31
+ --animate-fade-in: fade-in 0.15s ease;
32
+ @keyframes fade-in {
33
+ 0% {
34
+ opacity: 0;
35
+ /* scale: 0.99; */
36
+ }
37
+ 100% {
38
+ opacity: 1;
39
+ scale: 1;
40
+ }
41
+ }
42
+ }
43
+
44
  @utility abs-x-center {
45
  left: 50%;
46
  @apply -translate-x-1/2;
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -229,7 +229,7 @@
229
 
230
  <!-- svelte-ignore a11y-no-static-element-interactions -->
231
  <div
232
- class="grid h-dvh divide-gray-200 overflow-hidden bg-gray-100/50 max-md:grid-rows-[120px_1fr] max-md:divide-y dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark] {compareActive
233
  ? 'md:grid-cols-[clamp(220px,20%,350px)_minmax(0,1fr)]'
234
  : 'md:grid-cols-[clamp(220px,20%,350px)_minmax(0,1fr)_clamp(270px,25%,300px)]'}"
235
  >
 
229
 
230
  <!-- svelte-ignore a11y-no-static-element-interactions -->
231
  <div
232
+ class="motion-safe:animate-fade-in grid h-dvh divide-gray-200 overflow-hidden bg-gray-100/50 max-md:grid-rows-[120px_1fr] max-md:divide-y dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark] {compareActive
233
  ? 'md:grid-cols-[clamp(220px,20%,350px)_minmax(0,1fr)]'
234
  : 'md:grid-cols-[clamp(220px,20%,350px)_minmax(0,1fr)_clamp(270px,25%,300px)]'}"
235
  >