A convenient custom element for embedding animated icons.
lord-icon-element lets you write websites with fancy, interactive, animated icons. With this element you can embed and control Lottie Files. Under the hood, the library uses awesome lottie-web animation player. Explore free library of 50 interactive icons.
$ npm install lord-icon-element lottie-web
From script module:
;;// register lottie and define custom element;
For more usage examples visit our repository. It's recommended to run them with:
npm inpm start
After that your browser will start automatically with our examples.
It's recommended to use this library with module bundler tools like webpack. If you want use this library without bundler, remember to import modules by path, not by package name.
You can use this library also without JS modules with released version. This is simplest way to use our element without any initialization and external tools. Just look for our JSFiddle example.