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

Jerky on scroll in IE #4

Open
BackuPs opened this issue Mar 28, 2016 · 5 comments
Open

Jerky on scroll in IE #4

BackuPs opened this issue Mar 28, 2016 · 5 comments

Comments

@BackuPs
Copy link

BackuPs commented Mar 28, 2016

Hi

Any idea how to fix the jerky behaviour on IE 11 or above on scroll up and down?

I searched for hours now and it seems to be a ie problem.

http://champion.backupsdemo.nl/parallax

Best regards,
BackuPs

@nk-o
Copy link
Owner

nk-o commented Apr 4, 2016

Hi, BackuPs.

Try new version 1.6.0. Should be slightly improved overall performance.

@BackuPs
Copy link
Author

BackuPs commented Apr 5, 2016

Hi nK,

Great support !

I uploaded the new scripts and in IE on scrolling i still see a white area on scroll in the top of each container until i stop scrolling. I guess its a stupid IE issue.

http://champion.backupsdemo.nl/parallax-t3d

http://champion.backupsdemo.nl/parallax

But its really superb the way you support this.

Thank you.

Best regards,
BackuPs

@animald
Copy link

animald commented Feb 20, 2019

Wait, accepting that this is an IE issue does not equate to case closed - surely?

@animald
Copy link

animald commented Feb 20, 2019

I created my background layer as a jarallax-element instead - the jerkiness goes away, so perhaps the solution you're looking for here lies in whatever solution is behind that?

The problem is around fixed position elements. So although a parallax background should appear fixed, we should be able to absolutely position it, negatively top or bottom depending on the shift value, and we should in theory see the same effect?

@nk-o
Copy link
Owner

nk-o commented Mar 1, 2019

Hi @animald.

I tested a lot with Absolute and Fixed positions, but eventually gave up. Some of IE works better with Absolute, some with Fixed, on different PCs backgrounds behave also differently.

In the end, Absolute position is only added on iOS and Android devices in this line:

// position fixed is needed for the most of browsers because absolute position have glitches
// on MacOS with smooth scroll there is a huge lags with absolute position - https://github.com/nk-o/jarallax/issues/75
// on mobile devices better scrolled with absolute position
position: /iPad|iPhone|iPod|Android/.test(navigator.userAgent) ? 'absolute' : 'fixed',

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