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

Range limit X/Y. #87

Closed
kitsunde opened this issue Jul 21, 2014 · 2 comments
Closed

Range limit X/Y. #87

kitsunde opened this issue Jul 21, 2014 · 2 comments

Comments

@kitsunde
Copy link

I've used parallax in a rather complex project with full page transitions and multiple scenes and run into a few cases that have been difficult to deal with. I'm submitting my issues for your consideration.

Use case: I had one scene which was split down the middle with the right side black and the left an image. We were doing split screen transitions. It didn't make sense on these pages to shift the right side an equal distance as the left which had a background.

Being able to optionally pass an array into limit would be nice, like:

parallax.limit([-100, 0], false);

Though it's conceivable that one would want to limit a single element (in my case only the background).

@reneroth
Copy link
Collaborator

I don't really see a use case for this that couldn't be solved by offsetting the scene container. If you still have need for this and maybe even have an example to show, feel free to reopen the issue!

@avdeev
Copy link

avdeev commented May 16, 2019

I've done something like this in #267, but for each layer

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

3 participants