Skip to content

Commit

Permalink
Tune flash animatino
Browse files Browse the repository at this point in the history
  • Loading branch information
solilin committed Feb 15, 2024
1 parent 2264c32 commit 6bbe1d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/app/components/ui/flash/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
data: { turbo_temporary: "true" } do %>
<% flash.each do |key, message| %>
<div
class="max-w-sm w-full sm:min-w-96 px-1 py-1 rounded border-l-4 transition duration-700 transform hidden <%= tailwind_classes_for(key) %>"
class="max-w-sm w-full sm:min-w-96 px-1 py-1 rounded border-l-4 transition duration-300 transform hidden <%= tailwind_classes_for(key) %>"
data-controller="alert"
data-alert-dismiss-after-value="<%= DISMISS_AFTER %>"
data-alert-remove-delay-value="<%= REMOVE_DELAY %>"
data-alert-show-delay-value="<%= SHOW_DELAY %>"
data-transition-enter-from="opacity-0 translate-x-1/2"
data-transition-enter-from="opacity-0 translate-x-1/4"
data-transition-enter-to="opacity-100 translate-x-0"
data-transition-leave-from="opacity-100 translate-x-0"
data-transition-leave-to="opacity-0 translate-x-1/2">
data-transition-leave-to="opacity-0 translate-x-1/4">

<div class="p-2">
<div class="flex items-start">
Expand Down

0 comments on commit 6bbe1d7

Please sign in to comment.