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

Refresh plugin after resize #22

Open
jorditost opened this issue Oct 12, 2012 · 6 comments
Open

Refresh plugin after resize #22

jorditost opened this issue Oct 12, 2012 · 6 comments

Comments

@jorditost
Copy link

Hi John,

The plugin doesn't seems to refresh after resizing, and the animations start/end delayed. There's a safe way to fix it?

Thanks

@jorditost
Copy link
Author

Is there an easy way to reset all scrollpoints?

@johnpolacek
Copy link
Owner

Not at this time. I do accept pull requests.

@jorditost
Copy link
Author

Hi John,

I don't know why I cannot leave pull requests. I think that the resize method would be something like:

scrollorama.resize = function() {

    var block;
    for (i=0; i<blocks.length; i++) {

        block = scrollorama.settings.blocks.eq(i);
        blocks[i].top = block.offset().top - parseInt(block.css('margin-top'), 10);
    }
};

@opreadoru
Copy link

Hi jorditost,
I am having some difficult time adding that code you made into scrollorama js. Did you managed to make that script work?
many thanks

@parameter
Copy link

We are making a site for a star trek/star wars-movie using scrollorama.
Making a reload when user resizes the window but the second "slide"
ends up way to far down, as if the page was fullscreen, any idea on
what's happening?

can I also carry on animating elements after the next "slide"
comes into scrolloramas focus?

@you-rick
Copy link

you-rick commented Sep 5, 2013

Does anybody find solution with stopping animation when window is resizing?

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

No branches or pull requests

5 participants