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

How to use interactivity(mode="scroll") in div scroll #119

Open
rjlatgithub opened this issue Nov 1, 2024 · 0 comments
Open

How to use interactivity(mode="scroll") in div scroll #119

rjlatgithub opened this issue Nov 1, 2024 · 0 comments

Comments

@rjlatgithub
Copy link

Describe the bug
Sorry to talk about this.
I use interactivity in body scroll page, it works well.
<Lottie animationData={lottieFile} style={{ width: 400, height: 400 }} interactivity={{ mode: "scroll", actions: [ { visibility: [0, 0.5], type: "seek", frames: [0, 45], }, { visibility: [0.5, 1.0], type: "loop", frames: [45, 60], }, ], }} />

But when I use this config in a div scroll page. It dose not show. How to pass the scroll container view to the lottie view.

Thanks very much~

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