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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.