johnpolacek / scrollorama

The jQuery plugin for doing cool scrolly stuff. NOTE: No longer under active development. New version is ScrollMagic.js
http://johnpolacek.github.com/scrollorama/
2.51k stars 371 forks source link

Refresh plugin after resize #22

Open jorditost opened 12 years ago

jorditost commented 12 years ago

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 commented 12 years ago

Is there an easy way to reset all scrollpoints?

johnpolacek commented 12 years ago

Not at this time. I do accept pull requests.

jorditost commented 12 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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