Remove @ Bottom
Closed this issue · 2 comments
ItsJoeTurner commented
I'm looking to have the "Scroll to Top" button active until I get to around 3/4 way down the page, is this possible? I'm not sure how I can achieve this...
markgoodyear commented
Hey @ItsJoeTurner, currently it's not possible.
You could perhaps use jQuery to check the scroll position and hide it:
$(window).scroll(function() {
if ($(window).scrollTop() > 1000) {
$('#scrollUp').hide();
} else {
$('#scrollUp').show();
}
});
This is untested, so it may not work out of the box. Keep an eye on the develop
branch as it's a more robust version with some extra features: https://github.com/markgoodyear/scrollup/tree/develop. It's currently getting a re-write to drop the jQuery dependancy.
markgoodyear commented
Closing this issue.