The trick with max-height is not perfect at all, transition will consider if height is 500. So for the not known general case height solution should be more complicated, and probably implementing it with pure elm will be not trivial, is possible at all, one needs to calculate containing items heights and set it on the container element that will be transitioned. I’m not aware of other more simple solutions for this problem.
romper
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Simple Animation v1.0.0 | 0 | 548 | December 31, 2020 | |
| Elm Simple Animation 2.0.0 | 0 | 1030 | March 7, 2021 | |
| "fold" animation in elm-css | 7 | 1162 | September 18, 2020 | |
| Css transition on element creation/insertion | 14 | 3031 | October 21, 2021 | |
| Feedback on Animation Utils | 7 | 984 | January 6, 2021 |