Meteor jQuery animate not working

时间:2015-09-30 23:11:39

标签: jquery meteor

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?

0 个答案:

没有答案