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

Parrallax behavior differ from child to child #49

Open
julesmoretti opened this issue Apr 28, 2020 · 0 comments
Open

Parrallax behavior differ from child to child #49

julesmoretti opened this issue Apr 28, 2020 · 0 comments

Comments

@julesmoretti
Copy link

Great tool! thank you for putting this together.

Please take a look at julesmoretti.digital, you will see 3 projects, 2 of which can be opened up (view those as an iPad pro or iPhone X device).

I implemented the parallax to the highlight of the titles "VR Care" "HARMONY EXPRESS" and so on... you will see that those triggers at different positions of the screen percentage.

The first one "Harmony Express" starts around 15% of the top of the page:
Screen Shot 2020-04-28 at 10 53 30 AM

And then the second one starts around here:
Screen Shot 2020-04-28 at 10 53 49 AM

And this is the animation config for it:

[
{
    width: "105%",
    duration: 100,
    playScale: [0.05, 0.1],
  },
  {
    width: '10%',
    duration: 100,
    playScale: [0.85, 0.9],
  },
]

I made sure that the parent element is set to position: relative. Let me know what I am missing here :)

Thank you.

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

No branches or pull requests

1 participant