How to do a smooth-scroll?
<p>I have the following working code to make a element of my scrollbox visible:</p>

<pre><code>var next = elements.item(i+1);
var xpcomInterface = scroll.boxObject.QueryInterface(
Components.interfaces.nsIScrollBoxObject);
xpcomInterface.ensureElementIsVisible(elements);
</code></pre>

<p>But I would like to make a smooth-scroll (slow or not). Any idea how to do it?</p>

<p><strong>update</strong></p>

<p>By the way, it's for Mozilla environment.</p>
