I'm trying to make a list that expands when you click on it, and make it smooth using transition 1s all
. However there is hidden part in the list, that I want to expand when the user clicks on the item. But i cannot get it to expand smoothly, it just seems to toggle it on/off.
See the JSFiddle for the code.
Could anyone help?
Edit: I want it to toggle in height (much like BootStrap's collapse
class). Not toggle the display
property.
If you bothered to look at the code, Praveen, you would have seen that.