jparallax icon indicating copy to clipboard operation
jparallax copied to clipboard

Kill parallax initialiaztion

Open covana opened this issue 12 years ago • 5 comments

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

covana avatar Aug 03 '11 23:08 covana

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.

stephband avatar Aug 04 '11 08:08 stephband

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?

covana avatar Aug 10 '11 21:08 covana

Yes, more or less.

stephband avatar Aug 11 '11 00:08 stephband

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

https://github.com/stephband/jparallax/issues/28 https://github.com/stephband/jparallax/issues/22 https://github.com/stephband/jparallax/issues/3

stephband avatar Jun 04 '12 19:06 stephband

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

epicwhale avatar Feb 26 '13 15:02 epicwhale