Animating LiveView Deletions with JS.hide/2 & JS.push/2
Someone asked me how to animate deleting elements in LiveView. The trick is to use LiveView.JS:
-
JS.hide/2
withanimate
option to hide and animate, and -
JS.push/2
to send the event to the server - ✨ beautiful deletions ✨
Read next Are one of these LiveView anti patterns lurking in your codebase?