Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unparallax() seems not to work #55

Open
mdawart opened this issue Jan 23, 2013 · 6 comments
Open

unparallax() seems not to work #55

mdawart opened this issue Jan 23, 2013 · 6 comments

Comments

@mdawart
Copy link

mdawart commented Jan 23, 2013

Hi,

I want to unparallax some layers when a user clicks a button.

I'm calling

jQuery('.parallax-layer').parallax({});

to init the parallax and

jQuery('.parallax-layer').unparallax(true);

to stopp the parallax. But it did nit stop. I already checked if the functions (jQuery.fn.unparallax = function(bool) and function unparallax(node, port, events) ) are called, but the second one throws an error:

Uncaught ReferenceError: elem is not defined jquery.parallax.js:415
unstyle jquery.parallax.js:415
(anonymous function) jquery.parallax.js:515
v.extend.each jquery.min.js:2
v.fn.v.each jquery.min.js:2
jQuery.fn.unparallax

Any idea?

@stephband
Copy link
Owner

Yeah, I have got some ideas. I can't look at it right away, unfortunately.
It'll have to wait a few days.

On 23 January 2013 13:58, ghmicha notifications@github.com wrote:

Hi,

I want to unparallax some layers when a user clicks a button.

I'm calling

jQuery('.parallax-layer').parallax({});

to init the parallax and

jQuery('.parallax-layer').unparallax(true);

to stopp the parallax. But it did nit stop. I already checked if the
functions (jQuery.fn.unparallax = function(bool) and function
unparallax(node, port, events) ) are called, but the second one throws an
error:

Uncaught ReferenceError: elem is not defined jquery.parallax.js:415unstyle jquery.parallax.js:415(anonymous function) jquery.parallax.js:515v.extend.each jquery.min.js:2v.fn.v.each jquery.min.js:2jQuery.fn.unparallax

Any idea?


Reply to this email directly or view it on GitHubhttps://github.com//issues/55.

@RonDg
Copy link

RonDg commented Jan 25, 2013

Hi ,

Got the same issue, did you find a solution ?

Ron

@mdawart
Copy link
Author

mdawart commented Feb 5, 2013

[removed quick fix that did not always work]

@mdawart
Copy link
Author

mdawart commented Feb 5, 2013

I also found out that not all times are removed when you call unparallax(), one is left:

timer frame() 4 jquery.parallax.js:73
timer remove() 3 jquery.parallax.js:123
timer remove() 2 jquery.parallax.js:123
timer remove() 1 jquery.parallax.js:123
timer frame() 1

@ryansnowden
Copy link

Should be unfreeze or unparallax?

@Acccent
Copy link

Acccent commented Jun 21, 2014

This hasn't been fixed I think? The documentation says you should use jQuery('.parallax-layer').trigger('freeze'); with potentially some options, but yeah, looking at the code it seems like it's no longer the way to go. How should we proceed to unparallax layers and make them return to their initial positions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants