Skip to content

Commit

Permalink
Replace wiggle with tailwindcss-animate
Browse files Browse the repository at this point in the history
  • Loading branch information
axelclark committed Mar 29, 2024
1 parent c0356ef commit 0868ad7
Show file tree
Hide file tree
Showing 5 changed files with 1,519 additions and 51 deletions.
4 changes: 2 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ let liveSocket = new LiveSocket("/live", Socket, {
window.addEventListener("phx:page-loading-start", (_info) => NProgress.start())
window.addEventListener("phx:page-loading-stop", (_info) => NProgress.done())

window.addEventListener(`phx:wiggle`, (e) => {
window.addEventListener(`phx:animate`, (e) => {
let el = document.getElementById(e.detail.id)
if (el) {
liveSocket.execJS(el, el.getAttribute("data-wiggle"))
liveSocket.execJS(el, el.getAttribute("data-animate"))
}
})

Expand Down
Loading

0 comments on commit 0868ad7

Please sign in to comment.