I'm trying to get the scrollTo plugin to work without any luck in targeting element IDs. Have tried this in several scenarios. For example:
var downBtn = $('#history-banner-down-btn');
downBtn.on('click',function() {
TweenMax.to($(window),1,{scrollTo:{y:'#section-1',offsetY:85}});
});
This will work if I change '#section-1' to 'max' which scrolls to the bottom of the document. Using an ID never works - no console errors or anything. Any ideas on where I'm going wrong?
RESOLVED:
Almost immediately fixed the problem after posting this. I was using an older version of the scrollTo plugin. Updated to 1.8 and it worked.