scrollorama icon indicating copy to clipboard operation
scrollorama copied to clipboard

Refresh plugin after resize

Open jorditost opened this issue 13 years ago • 6 comments

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 avatar Oct 12 '12 10:10 jorditost

Is there an easy way to reset all scrollpoints?

jorditost avatar Oct 15 '12 09:10 jorditost

Not at this time. I do accept pull requests.

johnpolacek avatar Oct 15 '12 10:10 johnpolacek

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);
    }
};

jorditost avatar Oct 15 '12 10:10 jorditost

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

opreadoru avatar Apr 01 '13 15:04 opreadoru

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?

parameter avatar Jun 10 '13 14:06 parameter

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

you-rick avatar Sep 05 '13 12:09 you-rick