I have been trying to get scrollable to start and stop. I can't seem to get it to work. I call scrollapi.interval = 0 which does stop it but I cannot get it to restart!
I've tried
scrollapi.interval,scrollapi.seekto() and scrollapi.reload() but none of them restart the animation! Any idea where I'm going wrong?
I've tried
scrollapi.interval,scrollapi.seekto() and scrollapi.reload() but none of them restart the animation! Any idea where I'm going wrong?
var scrollapi;
$('div.timeline a.next').attr('href', '#').bind('mouseenter', pause).bind('mouseleave', start);
$('div.timeline a.prev').attr('href', '#').bind('mouseenter', pause).bind('mouseleave', start);
function pause() {
scrollapi.getConf().interval = 0;
scrollapi.reload();
}
function start() {
scrollapi.getConf().interval = 350;
scrollapi.getConf().easing = 'swing';
scrollapi.reload();
}