How to generate the similar folding effect as Gmail in JavaScript
<p>I assume Gmail used JavaScript to implement the folding effect for a particular email thread. The effect I am talking about is: after you choose a particular email thread by clicking on it, then you will see that only the latest email is shown, with all the previous emails in a folded state. Only when you click on the folding section, they will expand, but still only showing a snippet of them. Then you click on each individual section, you can read the full message. How can one do this? Many thanks.</p>
