Complex Animations Done Well
summary
Shows how Elm apps keep animations out of business logic by storing true state vs visual state per item, animating visual values toward targets on each frame with spring-based animation so entry/exit motions remain continuous, and copies needed render data into the visual list so deleted items can exit without polluting saves. Demonstrates that this works for complex lists but notes a practical limitation: browser size measurement is async via getElement limitation, breaking smooth insert-without-layout-measure.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:12Animation challenges in Elm
- 2:38CSS vs pure Elm solutions
- 6:07Elm-style animation benefits
- 7:56Separating business and visual states
- 10:02Using Springs for smooth motion
- 12:34Exit animations without business logic clutter
- 15:27Entry animations approach
- 16:49Entry animation limitations in Elm
- 19:37Drawbacks and benefits of the approach
- 21:48Q&A and closing
