How do smooth slides work in javascript?
<p>For a while now i have been trying to figure out the algorithms behind smooth slides, fades etc..in javascript.  Just to give you an example of what am talking about, I have seen a div with content in it that had a height of 0px and on toggled, it didn't just <em>snap</em> to height, it smoothly and gradually grew to height using some sort of function.  What i do know is that the height of this div was being assigned its height value from either a date object that had an interval set or a loop of some sort.  I've searched all over the web trying to find tutorials explaining how this works but failed. Can someone please either explain to me how to create my own smooth fades, slides or reference some links that i can read?</p>

<p><em>PS: I know i can just use jquery, but i want to know how the fades and slides actually work.</em></p>
