Getting Started
We will need to install the required web components to render and play the Lottie animation. We will be using the player...
For further actions, you may consider blocking this person and/or reporting abuse
could this lottie-player using inside loading controller on Ionic 4/5?
i have trying but the animations doesn't play.
Appreciate your write up. How do I make it work in my scenario below.
I already have
import { defineCustomElements } from '@ionic/pwa-elements/loader';statement inmain.tsfile.How do i add
import { defineCustomElements } from '@teamhive/lottie-player/loader';in this case?Could you please help? I'm using
Ionic 5With TypeScript, you can import a class/const/etc. with an alias, to avoid name collision.
For example, you could do this:
You can name the variable whatever you'd like, with the
assyntax.Excellent, thanks for sharing mate! And also we can animate any html element using this other WebComponent => github.com/proyecto26/animatable-c...
Thank you very much sir, you just solved my problem. I was not begin able to make it work correctly!
(Tested with NodeJS : v12.16.1 and @ionic/angular 5.0.5)
how do you start the animation programmatically? like by pressing a button (not from the controls of the player)?