Skip to content
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

'scrollingSpeed' property not working #53

Open
jaimevent opened this issue Sep 24, 2015 · 3 comments
Open

'scrollingSpeed' property not working #53

jaimevent opened this issue Sep 24, 2015 · 3 comments
Labels

Comments

@jaimevent
Copy link

@jaimevent jaimevent commented Sep 24, 2015

I'm trying to set a scrolling speed, but even if I put a high value it doesn't change anything.
This is how I initiate the plugin:

$('#multiscroll').multiscroll({
    paddingTop: '15px',
    paddingBottom: '15px',
    loopBottom: true,
    loopTop: true,
    css3: true,
    scrollingSpeed: 2000,
    afterLoad: function(anchorLink, index) {
        if (timeout) {
            clearTimeout(timeout);
        }
        timeout = setTimeout(function () {
            $.fn.multiscroll.moveSectionDown();
        }, 3000);
    },
    afterRender: function() {
        if (timeout) {
            clearTimeout(timeout);
        }
        timeout = setTimeout(function () {
            $.fn.multiscroll.moveSectionDown();
        }, 3000);
    }
});
@alvarotrigo

This comment has been minimized.

Copy link
Owner

@alvarotrigo alvarotrigo commented Sep 24, 2015

Scrolling speed only works when using css3:false.

Otherwise you'll have to modify the .ms-easing class in line 30 of the CSS file.

.ms-easing {
    -webkit-transition: all 0.7s ease-out;
    -moz-transition: all 0.7s ease-out;
    -o-transition: all 0.7s ease-out;
    transition: all 0.7s ease-out;
}

You can change the 0.7 seconds there for any other value you want.

@jaimevent

This comment has been minimized.

Copy link
Author

@jaimevent jaimevent commented Sep 24, 2015

Thanks, now it works!

@jaimevent jaimevent closed this Sep 24, 2015
@alvarotrigo alvarotrigo reopened this Sep 24, 2015
@alvarotrigo

This comment has been minimized.

Copy link
Owner

@alvarotrigo alvarotrigo commented Sep 24, 2015

I'll keep it open as an enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.