The code in question animates a page scroll to a particular point on the page. As the title says, I want the Google Closure equivalent to the following jQuery:
$('html,body').animate({scrollTop: 800});
It says here that html, body allows for browser inconsistencies, and that $(document) is equivalent.
I have tried the following:
var anim = new goog.fx.dom.Scroll(document, [0, 0], [0, 800], 400);
anim.play();
I've also tried with document.body.
There are no demos and a dismal lack of information on goog.fx.dom.Scroll on the web.