# Simple CSS transitions in Elm?

**URL:** <https://discourse.elm-lang.org/t/simple-css-transitions-in-elm/8103>\
**Category:** Learn\
**Created:** [January 25, 2022, 5:51am UTC](https://discourse.elm-lang.org/t/simple-css-transitions-in-elm/8103 "2022-01-25T05:51:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![romper](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@romper](https://discourse.elm-lang.org/u/romper)\
**Post date:** [February 2, 2022, 4:16pm UTC](https://discourse.elm-lang.org/t/simple-css-transitions-in-elm/8103/7 "2022-02-02T16:16:37Z")

</div>

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.

---

_[View the full topic](https://discourse.elm-lang.org/t/simple-css-transitions-in-elm/8103)._
