I have the following working code to make a element of my scrollbox visible:

```
var next = elements.item(i+1);
var xpcomInterface = scroll.boxObject.QueryInterface(
Components.interfaces.nsIScrollBoxObject);
xpcomInterface.ensureElementIsVisible(elements);

```

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

**update**

By the way, it's for Mozilla environment.