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:
animateoption to hide and animate, and
JS.push/2to send the event to the server
- ✨ beautiful deletions ✨
Read next Are one of these LiveView anti patterns lurking in your codebase?