I would like to add a smooth transition when I click a line of text, all I get is an instant expand. I would also like Line 1 to retract when I click Line 2, as it is now, the lines stay expanded if I click the next/previous one. I'd prefer to use CSS or HTML if possible.
I tried fiddling around with transition and here's the current line not working, at all...
div:focus{
transition: all 5s ease;
}
I'm stuck... Any help is appreciated. Thanks in advance.
Here's a jsfiddle: http://jsfiddle.net/jnsk3f2g/3/