elm-animator
elm-animator copied to clipboard
How to animate items removed from a lazy list
If I have a long list of e.g. to-dos, I want to use lazy for performance reasons. If I remove an item from that list, I want to use elm-animator so it doesn't just blink out of existence.
elm-animator requires wrapping all the relevant model values in a opaque type, whereas lazy requires that the arguments to each item's view
are not only identical but also have the same pointer in memory.
What can we do to animate additions and removals from a list without re-rendering other items?