Elm: Animate the removal of DOM elements with CustomElement and MutationObserver
Desired result
You can see the end result in this ellie. It displays a smooth removal of the clicked items. You can also remove some items from the beginning or the end.
Version 1
https://ellie-app.com/cvCV93KgD56a1
Version 2
An updated ellie with improved performance. This gist was not yet updated with all changes made in this version. Only the article text is somewhat updated.