Note that there are some explanatory texts on larger screens.

plurals
  1. POParallax image loads fine, but jumps to center when hovered over
    primarykey
    data
    text
    <p>I've got this peculiar bug I've been trying to fix today—-still no luck. If you look at the example below,</p> <p><a href="http://vitaliyg.com/alpha/hire/" rel="nofollow">http://vitaliyg.com/alpha/hire/</a></p> <p>Here's what happens. The full-width background image loads in the correct position, centered along the y axis. Then when we hover over the image, the whole image jumps over to the middle, and slowly adjusts itself back to it's normal desired position.</p> <p>What's causing this is <code>left: 50%; margin-left: -960px;</code>. This allows us to center the image correctly to begin with. If we didn't have this CSS, the hover wouldn't jump, but the image would load anchoring itself on the top left of the browser.</p> <p>In the link above, the red box is the content div. The blue box is some text that will be parallaxing with the <code>background-image</code>.</p> <p>Here is what I am trying to achieve:<br /></p> <ol> <li>Make the <code>background-image</code> appear centered.</li> <li>When the user hovers over the <code>background-image</code>, it would not jump to the middle of the page.</li> <li>And lastly, decrease the width of which the user would be able to "parallax" on the x axis. The way it is now, is that the user can see from side to side of the image if patient enough. I want the parallax to be very subtle.</li> </ol> <p>Also, I'm using jParallax, found here:<br /> <a href="http://stephband.info/jparallax/" rel="nofollow">http://stephband.info/jparallax/</a></p> <p>Thank you for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload