You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a weird problem regarding the use of parallax backgrounds. I have a parallax background at the upper part of my website and as soon as I implement Google Analytics and/or wp_head() the initial position of the parallax background gets messed up.
I'm firing $.stellar() inside a $(document).ready() block, so there should be no chronological problem.
Without Google Analytics and the wp_head() call, the value of background-position gets a correct value of "0px 71.5px". With Google Analytics and/or the wp_head() call the value is "0% 0%" and as soon as I resize the window or start to scroll, the value jumps to the correct value.
Can you help me with that?
Thanks in adavance.
Best Regards!
The text was updated successfully, but these errors were encountered:
Update: If I fire $.stellar inside a $(window).load() block, Stellar sets the correct background-position value, but everything is little bit delayed. While the images are loading, the background-positions are not correct. As soon as all images are completely loaded, the background-position via Stellar gets applied. This is only for a short moment (depending on the internet connection), but it's not really pretty.
Hello there,
I have a weird problem regarding the use of parallax backgrounds. I have a parallax background at the upper part of my website and as soon as I implement Google Analytics and/or wp_head() the initial position of the parallax background gets messed up.
I'm firing$.stellar() inside a $ (document).ready() block, so there should be no chronological problem.
Without Google Analytics and the wp_head() call, the value of background-position gets a correct value of "0px 71.5px". With Google Analytics and/or the wp_head() call the value is "0% 0%" and as soon as I resize the window or start to scroll, the value jumps to the correct value.
Can you help me with that?
Thanks in adavance.
Best Regards!
The text was updated successfully, but these errors were encountered: