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

Any Example for onEnter trigger hook and pinning? #21

Open
rtm619 opened this issue Feb 26, 2020 · 1 comment
Open

Any Example for onEnter trigger hook and pinning? #21

rtm619 opened this issue Feb 26, 2020 · 1 comment

Comments

@rtm619
Copy link

rtm619 commented Feb 26, 2020

Hi team,

We have an animation where we want to start the animation when the Scene comes into the viewport (onEnter triggerHook). And once the whole scene has covered the viewport fully (i.e top is 0, we want to pin it with position fixed). Currently if we use onEnter triggerHook and pin the Scene, the child div of the Scene gets a top of the viewport height as soon as the animation starts, thus we are unable to see the animation.

If you guys have any examples related to this scenario, please attach the demo in this issue.

Thanks in advance,
Reetam

@bitworking
Copy link
Owner

I don't fully understand the problem. Can you provide a minimal example in https://stackblitz.com/?

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

2 participants