johnpolacek/scrollorama — pull request #26 by acanals (2012-11-30 01:26:34+00:00)
Title: Only create div#scroll-wrap once

Howdy!

I have an situation where I need to reinitialize scrollorama to update the values from the start/end functions but when I make the call to my scrollorama function it creates this empty div#scroll-wrap in the document every time I make that call. I do this because the animation end values could change and I need them not to snap back to the original position. This is just checking to see if the div is in the DOM already so that it only creates that element once.

Maybe there is a better way to re-init scrollorama so that those values are updated?

Also, I'm still unclear as to why we need that empty div in the first place but I wanted to put this here and get your input.

Thanks,

-A