Question on Meteor and Jquery. I'm trying to build a page that will slowly scroll down a set of photos endlessly and at a constant speed. Right now the code below will scroll down but it is not at a constant speed and will stop halfway down according the the current 1000 that is set.
Can someone else me figure out a way to modify this code to have it endlessly move down the page slowly?
Template.currentTag.rendered = function () {
$('body').animate({ scrollTop: 1000,
easing: 'linear'}, 10000);
return false;
};
The container layout is simply:
<template name="layout">
<div id="container">
{{> currentTag}}
</div>
</template>
And each currentTag template is setup as follows:
<template name="currentTag">
{{#each Tag}}
<div class="item">
<img src="{{ images.standard_resolution.url }}">
</div>
{{/each}}
</template>
Thanks in advance!