Преглед на файлове

Fix animated modals timing

The enter animation was delayed by 100ms, while the exit timeout was
100ms: the css transition is 150ms and the exit timeout should be the
same.
ranfdev преди 4 години
родител
ревизия
071615f34d
променени са 1 файла, в които са добавени 4 реда и са изтрити 6 реда
  1. 4 6
      src/main/frontend/components/editor.cljs

+ 4 - 6
src/main/frontend/components/editor.cljs

@@ -415,12 +415,10 @@
     (ui/css-transition
      {:key key
       :class-names {:enter "origin-top-left opacity-0 transform scale-95"
-                    :enter-done "origin-top-left transition opacity-100"
-                    :enter-active "origin-top-left transition"
-                    :exit "origin-top-left transition opacity-0 transform scale-95"
-                    :exit-active "origin-top-left transition"
-                    :exit-done "origin-top-left transition opacity-0 transform scale-95"}
-      :timeout 100}
+                    :enter-done "origin-top-left transition opacity-100 transform scale-100"
+                    :exit "origin-top-left transition opacity-0 transform scale-95"}
+      :timeout {:enter 0
+                :exit 150}}
      (fn [_]
        (absolute-modal
         component