Created
December 7, 2021 02:21
-
-
Save patrickmaciel/9df4950e2791bbce57697bc69783b293 to your computer and use it in GitHub Desktop.
Revisions
-
patrickmaciel created this gist
Dec 7, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <!-- listen notify-saved then show a span with messages that vanish in 1000ms --> <span x-cloak x-data="{ open: false, message: '' }" x-init="@this.on('notify-saved', () => { setTimeout(() => { open = false }, 2500); open = true; }) " x-show='open' x-transition.out.duration.1000ms class="text-green-600">Salvo com sucesso!</span>