I am aiming for the DIV height to automatically adjust to the text within it, while also maintaining a minimum height. However, when the user hovers their mouse over the DIV, I want the height to change smoothly without losing the transition effect.
When I modify height: fit-content;
to a fixed size like height: 100px;
, the transition animation still functions but the height of the div may not perfectly match the text inside it.