Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How create transition for height? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
3y ago
Nikita
How create transition for height?
I have ul and li elements and I can have 4
-5 li elemans and can have 9
-10 li elements
I want change hieght of div to fit ul content
Now height property changes without transition
I tried smth like
h-[${liCount}rem]
h-[${liCount}rem]
but it doesn
't work
I created codesandbox please check and help me if you know how to do it
https://codesandbox.io/p/sandbox/quizzical-hooks-8sdhp5?file=/.gitignore:1,1
I use React
+ Vite
+ TypeScript
+ tailwind
Solved
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Problem with transition height
KP-C
Kevin Powell - Community / front-end
2y ago
How to make transition dependent on block height?
KP-C
Kevin Powell - Community / front-end
4y ago
Firefox button height transition bug fix?
KP-C
Kevin Powell - Community / front-end
2y ago
How does Bootstrap transition the height back and forth?
KP-C
Kevin Powell - Community / front-end
15mo ago