I'm trying to scroll a page when the template renders using this code:
Template.message.rendered = function() {
$('html, body').animate({
scrollTop: $('ul#message-list li:last').offset().top
}, 600);
}
Nothing happens. The element definitely exists. Has anyone run into jQuery animate not working in meteor?