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

Apply transition after setting it to the right position (translate3d and scale) #26

Closed
zhrance opened this issue Oct 2, 2019 · 4 comments

Comments

@zhrance
Copy link

zhrance commented Oct 2, 2019

Hi, First of all I want to say that your javascript with images works pretty neat. It's the first proper code I find for parallax scrolling with images which are not set on the background with CSS :)

I got the following issue, when I open a page with parallax you see the image transitioning to the right position with translate3d and scale. Which feels kinda buggy. Is there a way to set the translate3d and scale without applying a transition but adding the transition when the image is already set to the right position and you start scrolling? Would love to hear, this transition on load is some kind of deal breaker when you apply parallax to a header at the top of a page.

@geosigno
Copy link
Owner

geosigno commented Oct 6, 2019

Hi zhrance,

First, thanks for you interest in simpleParallax, really appreciated it.

And then thanks again for spotting this, after some time I feel like I was considering this buggy effect as the default behavior... Feel good to have external feedback to tackle those.

This has been commit on develop, and we'll be soon merged with master.

@zhrance
Copy link
Author

zhrance commented Oct 7, 2019

You are more than welcome. I can imagine you consider the buggy effect as a feature after some time :) Although I would love to see it fixed. Let me know if I can help/support you. My main knowledge is HTML/CSS. Also applied your parallax in some projects with responsive images, lazy loading and using placeholder where the images has position:absolute.

@zhrance
Copy link
Author

zhrance commented Dec 3, 2019

Hi Geosigno, how are you doing? Any updates regarding this "issue"? :)

@geosigno
Copy link
Owner

geosigno commented Dec 7, 2019

This has just been released with the 5.2.0.

@geosigno geosigno closed this as completed Dec 7, 2019
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

2 participants