-
Notifications
You must be signed in to change notification settings - Fork 14
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
dotlottie-web interactivity for scroll interactions #183
Comments
@mindshaped The lottie-interactivity library internally relies on the lottie-web renderer APIs, which differ slightly from those of dotlottie-web. It's not a simple drop-and-replace player, as some APIs have changed. Currently, we are working on cross-platform interactivity support for the new dotlottie players that will replace the lottie-interactivity library, expected to be released soon. In the meantime, you might consider creating an adapter for dotlottie-web that will make it compatible with lottie-interactivity. I'll try to provide a code example soon to demonstrate how this can be achieved |
@mindshaped Unfortunately, I couldn't get the adapter working for all the interactivity examples, specifically the scroll use case. We are currently focusing on building cross-platform interactivity support for the dotLottie players. for now, here is the adapter example if you want to investigate: https://codepen.io/lottiefiles/pen/PovWYpr This example works with click-based interactivity use cases. I'm not sure why it's not working for the scroll; it requires a deep dive into the Lottie Interactivity library to understand the missing pieces. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. |
Im experiencing similar issues: I can achieve click-based interactivity but haven't been able to get dotLottie to work with scroll-based interactivity. The lottie-web implementation functions as expected, but I cannot make dotLottie work for scroll interactivity. Would appreciate any guidance or updates. |
Overview
It seems currently not possible to add scroll interactivity to .lottie files integrated with dotlottie-web. In the previous player web-component (that points to dotlottie-web, see https://github.com/dotlottie/player-component/tree/master/packages/player-component) we were able to use the lottie-interactivity library (https://github.com/LottieFiles/lottie-interactivity) to create scroll-interactions.
Motivation
to create animated .lottie files with scrolling reactivity and while using the latest dotlottie-web library, as the .lottie files seem to be much more performant than the older .json/lottie-web or player-component integrations.
The text was updated successfully, but these errors were encountered: