Kill parallax initialiaztion #21

Open
covana opened this Issue Aug 3, 2011 · 5 comments

Projects

None yet

3 participants

@covana
covana commented Aug 3, 2011

I am trying to kill and reinitialize the .parallax on window resize. Was wondering how to kill it?

@stephband
Owner

That's a good question. There is no easy way to kill it. Most events are bound with the namespace 'parallax', but I note that not all are.

Currently the only way to do it would be to remove the parallax frame from the DOM and re-insert it (thus losing all the event bindings). That still leaves some stuff bound to window and document, but nothing that will interfere with the next setup of parallax.

Thanks. I will look into making an easy un-parallax method.

@covana
covana commented Aug 10, 2011

If i remove the parallax frame from the DOM and re-insert it will this be a solution for the performance issues seen when calling .parallax on the same element more than once?

@stephband
Owner

Yes, more or less.

@stephband
Owner

Note to self: these issues address the same question, more or less:

#28
#22
#3

@epicwhale

Is there any working solution for this issue yet? Looks like its in demand all over. Here too http://stackoverflow.com/questions/6305547/how-to-disable-jquery-jparallax-plugin-on-scroll-and-re-enable-when-scrolling-st

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment