react-scrollmagic icon indicating copy to clipboard operation
react-scrollmagic copied to clipboard

Any Example for onEnter trigger hook and pinning?

Open rtm619 opened this issue 5 years ago • 1 comments

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

rtm619 avatar Feb 26 '20 13:02 rtm619

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

bitworking avatar Feb 27 '20 09:02 bitworking