How can I give a transition to a livewire component using AlpineJS? #848
toxifiedmatrix
started this conversation in
4. General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I give a transition to a livewire component using alpine.js. The button which opens the modal to create or update entries is in the
index.blade.php
view, when the button is clicked, it loads the livewire component for the modal i.e.create.blade.php
. How can I give a transition to that element, on click of the button which is present in theindex.blade.php
. Sorry for being a noob, but I'm new to alpine. Experienced players, please help me!Included the modal component in the index.blade.php using the below piece of code.
Linked the event to the create button in the index.blade.php.
Then the usual code for the modal in the component which I want to animate. It shows up after I click the create button.
Borrowed the code for the modal component from here, https://tailwindui.com/preview#component-47a5888a08838ad98779d50878d359b3. I want the same animation as in the preview.
Beta Was this translation helpful? Give feedback.
All reactions