jparallax icon indicating copy to clipboard operation
jparallax copied to clipboard

Chrome 21.0 - Does not initialize at the correct position.

Open samaybhavsar opened this issue 12 years ago • 2 comments

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.

samaybhavsar avatar Aug 30 '12 10:08 samaybhavsar

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.

Steamforge avatar Nov 20 '12 23:11 Steamforge

Yeah, I saw the same issue. setTimeout did the trick. Thanks for the work around.

joshbtn avatar May 31 '13 01:05 joshbtn