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

position, positionX & positionY not working #24

Closed
philippkuehn opened this issue Jan 29, 2015 · 5 comments
Closed

position, positionX & positionY not working #24

philippkuehn opened this issue Jan 29, 2015 · 5 comments
Labels

Comments

@philippkuehn
Copy link

At the moment custom values for position, positionX & positionY are not working. I've debugged a bit and found out that my settings are always overwrited with "center".

$('.foo').parallax({
    imageSrc: 'image.jpg',
    position: 'left bottom', // not working
    positionY: 'bottom', // not working
    positionX: 'left' // not working
});
@markhowellsmead
Copy link

Same issue here too. (Using v1.3 and element attribute data-position-y.)

@mikegreiling
Copy link
Member

They appear to be working for me. Could you provide an example page demonstrating this issue?

Keep in mind that setting position: 'bottom' does not necessarily mean the image will always be aligned exactly at the bottom of the parallax container element. It needs enough extra padding in order to slide up and down as the user scrolls up and down the page. The "bottom" attribute only comes into account when the viewport is such that there is more vertical "slack" than is needed to achieve the parallax, and it will then align it as close to the "bottom" or "top" as it can while still maintaining the space it needs.

@markhowellsmead
Copy link

There's a test page at http://stuff.mhm.li/parallaxjs/ for the time being. The lower image is how the parallax image should be positioned before scrolling.

@mikegreiling
Copy link
Member

Thanks for the information. I believe I've fixed this issue in v1.3.1. Try it out and let me know if you have any more issues.

@markhowellsmead
Copy link

Perfect, thanks for the swift response, Mike.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants