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

Feature Request. the parallax should stop at 50% or halfway #276

Open
prateekshaweb opened this issue Oct 30, 2018 · 2 comments
Open

Feature Request. the parallax should stop at 50% or halfway #276

prateekshaweb opened this issue Oct 30, 2018 · 2 comments

Comments

@prateekshaweb
Copy link

Hi
This is a feature request. can there be an option so that the Parallax stops at 50% or halfway and the image scrolls up normally.

I have a parallax which has Text on the left and on the right is an image of a man. I need that the text and the man should come exactly side by side. At 50% It does come exactly side by side, but as you scroll down, the text goes up and the man gets hidden by the parallax below.

Can you add an option so that at 50%... the parallax does not happen and the image goes up as normal

Currently I solved this issue with my website by adding this code
if ( this.offsetTop >= 28 ) {
this.offsetTop = 28
}
just after
this.visibility = 'visible';
this.mirrorTop = this.boxOffsetTop - scrollTop;
this.mirrorLeft = this.boxOffsetLeft - scrollLeft;
this.offsetTop = this.offsetBaseTop - this.mirrorTop * (1 - this.speed);

Can you add this feature?

@wstoettinger
Copy link
Collaborator

Hi @prateekshaweb!

I appreciate your suggestion! However, the usefulness will have to be further evaluated against the increasing complexity of the configuration.

I will leave this issue open and evaluate it when more people request such a feature.

thanks for your understanding!

@jeffceriello
Copy link

Hi, this feature would be greatly appreciated! I also need the parallax effect to stop and the element to scroll normally after a certain point.

Thanks

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