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

Lottie files in EPUB: how use interactivity #209

Open
lucadigiacomo opened this issue Jun 2, 2023 · 0 comments
Open

Lottie files in EPUB: how use interactivity #209

lucadigiacomo opened this issue Jun 2, 2023 · 0 comments

Comments

@lucadigiacomo
Copy link

lucadigiacomo commented Jun 2, 2023

Dear all I have a question about lottery interactivity.

To insert a lotte in EPUB I use this script:

<script> var elem = document.getElementById("_idContainer009"); lottie.loadAnimation({ container: elem, renderer: 'svg', loop: true, autoplay: true, path: 'script/montaggio.json', }); </script>

But when I have to insert interactivity I don't know which "player" to connect:

<script> LottieInteractivity.create({ player:'#_idContainer009', mode:"chain", actions: [ { state: 'loop', transition: 'click', frames: [0,60] }, { state: 'autoplay', transition: 'onComplete', forceflag: [true], frames: [60,210] … How can I solve the "non-existent" player problem? thanks in advance for any suggestion
@lucadigiacomo lucadigiacomo changed the title Lottie Interactivity in EPUB files: Lottie files in EPUB: how use interactivity Jun 2, 2023
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