-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable scroll when refresh (F5) triggered #50
Comments
I'm not quite sure what you are asking... pressing f5 reloads the page. So are you talking about the initial scrolling that MovingBoxes does? Have you tried setting the Are you wanting to completely disable the initial scrolling? |
Yes I am talking about the initial scrolling that MovingBoxes does when the page reloads when the wrap is set to true. I want to completely disable the initial scrolling. I tried setting the hashTags to false but it still scrolled on page load. When wrap variable is set to false the initial scrolling does not occur on page load. So I am trying to see we can disable the initial scroll when wrap is set to true. Thanks for replying so fast! |
Ah ok, I understand. Try these settings (demo) $('#slider').movingBoxes({
// animation time in milliseconds
speed: 0,
// e = event, slider = MovingBoxes Object, tar = current panel #
// callback when MovingBoxes has completed initialization
initialized: function(e, slider, tar){
slider.options.speed = 500;
}
}); |
Thank you! Your suggestion works. Once again thank you for your prompt response on all my questions. |
Update: A new option named |
I have the following...
$('#slider-two').movingBoxes({
startPanel : 1,
width : 500,
wrap : false,
panelWidth : .7,
buildNav : true,
navFormatter : function(index, panel){ return panel.find('h2 span').text(); }
});
When I click on the F5 button I don't see the scroll animation.
But when I change the wrap variable to "true" and I click F5, I see the scroll animation run. How do I turn off the default scroll animation when F5 or page is loaded? I like it when I don't see the animation run by default.
Please advice.
thanks!
The text was updated successfully, but these errors were encountered: