Skip to content

Commit 443af43

Browse files
author
Itamar Junior
committed
feat: add smooth transition animations to system update status messages
1 parent 0b5788c commit 443af43

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

resources/views/livewire/settings/system-update.blade.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
1818
Run Update
1919
</button>
2020
@else
21-
<div class="p-4 bg-green-100 border-l-4 border-green-500">
21+
<div class="p-4 bg-green-100 border-l-4 border-green-500"
22+
x-transition:enter="transition ease-out duration-300"
23+
x-transition:enter-start="opacity-0 transform scale-95"
24+
x-transition:enter-end="opacity-100 transform scale-100"
25+
x-transition:leave="transition ease-in duration-300"
26+
x-transition:leave-start="opacity-100 transform scale-100"
27+
x-transition:leave-end="opacity-0 transform scale-95">
2228
Your application is up to date.
2329
</div>
2430
@endif
@@ -42,8 +48,13 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
4248
</div>
4349

4450
@if ($log)
45-
<div
46-
class="mt-6 bg-black text-green-400 p-4 text-sm whitespace-pre-wrap break-words transition-all duration-300 ease-in-out">
51+
<div class="mt-6 bg-black text-green-400 p-4 text-sm whitespace-pre-wrap break-words transition-all duration-300 ease-in-out"
52+
x-transition:enter="transition ease-out duration-300"
53+
x-transition:enter-start="opacity-0 transform scale-95"
54+
x-transition:enter-end="opacity-100 transform scale-100"
55+
x-transition:leave="transition ease-in duration-300"
56+
x-transition:leave-start="opacity-100 transform scale-100"
57+
x-transition:leave-end="opacity-0 transform scale-95">
4758
{{ $log }}
4859
</div>
4960

0 commit comments

Comments
 (0)