jparallax
jparallax copied to clipboard
Chrome 21.0 - Does not initialize at the correct position.
Hey,
I am using Windows Vista, Chrome 21.0 and the target.html demo is not opening properly. When I move my cursor from top left into the parallax port, the image moves and starts from the center of the screen.
I checked using Inspect Element and found that the margin-left and margin-top values is 0. In firefox, the values keep changing.
I had the same issue. I had 8 images and only 2 of them would initialize. The rest would stay at margin-left:0. It seems as if the DOM isn't finished loading when parallax triggers. I found that initializing the parallax in a setTimeout worked.
Yeah, I saw the same issue. setTimeout did the trick. Thanks for the work around.