This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

lord-icon-illustration
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

lord-icon-illustration

A convenient custom element for embedding animated illustrations.

Installation

$ npm install lord-icon-illustration lottie-web

Usage

From script module:

import { loadAnimation } from "lottie-web";
import { defineLordIconIllustration } from "lord-icon-illustration";

// register lottie and define custom element
defineLordIconIllustration(loadAnimation);

From markup:

<lord-icon-illustration
  src-in="/in.json"
  src-loop="/loop.json"
  src-action="/action.json"
></lord-icon-illustration>

Examples

For more usage examples visit our repository. It's recommended to run them with:

npm i
npm start

After that your browser will start automatically with our examples.

Notice

Modules

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.

Static release

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.

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i lord-icon-illustration

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    24.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • baszczewski
    • willusz