Home › Forums › JavaScript › Scroll to div when user idle for first five seconds after page load: › Reply To: Scroll to div when user idle for first five seconds after page load:
June 23, 2015 at 12:31 pm
#204101
Participant
Could you maybe add the link (that I think was meant to be there)?
Shouldn’t be too complicated though :
var move = setTimeout(function() {
// scroll code
}, 5000);
$(window).on('mousemove touchstart', function() {
clearTimeout(move);
});