Installation
Import and install the Lottie-Player component.
Using HTML, import the Lottie-Player component or the Telegram Sticker Player from CDN or from the local installation as follows:
Lottie Player
- Import from a Content Delivery Network (CDN):
<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/lottie-player.js"></script>
- Import from a local node_modules directory.
<script src="/node_modules/@lottiefiles/lottie-player/dist/lottie-player.js"></script>
Telegram Sticker (TGS) Player
- Import from a CDN:
<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/tgs-player.js"></script>
- Import from a local node_modules directory.
<script src="/node_modules/@lottiefiles/lottie-player/dist/tgs-player.js"></script>
Ensure that you have npm or yarn installed before installing this component.
npm install --save @lottiefiles/lottie-player (or)
yarn install --save @lottiefiles/lottie-player
import "@lottiefiles/lottie-player";
Last modified 1yr ago