Hi!
I am pretty excited about the new JS commands in LiveView, but struggling to replace AlpineJS in the transitions department.
Looking at the following markup:
<div
x-show="open"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="opacity-0 transform scale-90"
x-transition:enter-end="opacity-100 transform scale-100"
x-transition:leave="transition ease-in duration-300"
x-transition:leave-start="opacity-100 transform scale-100"
x-transition:leave-end="opacity-0 transform scale-90"
>Hello 👋</div>
(from transition — Alpine.js)
How would I do this with LiveView.JS
? Been playing around trying to pass different arguments to transision/3
and co but haven’t been able to get anything that resembles what Alpine does.
Has anyone looked into it and could provide an example?