scrollTo

scrolls content of html node to the specific position

void scrollTo(HTMLElement node,number x,number y,string speed);
nodeHTMLElementhtml node
xnumberscroll x position
ynumberscroll y position
speedstringtime for scroling
Details

speed can be defined like "100ms" or "50s" - similar to speed of css animation

Back to top