{"id":15046158,"url":"https://github.com/fivethree-team/lottie","last_synced_at":"2025-10-26T05:30:49.157Z","repository":{"id":38325156,"uuid":"169904401","full_name":"fivethree-team/lottie","owner":"fivethree-team","description":"🦁 Lottie Animation Component","archived":false,"fork":false,"pushed_at":"2020-07-10T12:55:29.000Z","size":313,"stargazers_count":12,"open_issues_count":21,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T15:24:23.232Z","etag":null,"topics":["angular","component","lottie"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fivethree-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-09T19:23:51.000Z","updated_at":"2023-07-25T14:23:31.000Z","dependencies_parsed_at":"2022-08-25T02:21:31.769Z","dependency_job_id":null,"html_url":"https://github.com/fivethree-team/lottie","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Flottie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Flottie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Flottie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivethree-team%2Flottie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivethree-team","download_url":"https://codeload.github.com/fivethree-team/lottie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264673,"owners_count":19443388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","component","lottie"],"created_at":"2024-09-24T20:52:47.181Z","updated_at":"2025-10-26T05:30:43.826Z","avatar_url":"https://github.com/fivethree-team.png","language":"TypeScript","readme":"# Lottie Animation Component\n\n[![npm version](https://badge.fury.io/js/%40fivethree%2Flottie.svg)](https://www.npmjs.com/@fivethree/lottie)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/fivethree-team/lottie/blob/master/LICENSE)\n\nLottie Animation Component for Angular 8 or higher.\n\n| Angular | @fivehtree/core |\n| ------- | --------------- |\n| 8/9     | 0.3.x+          |\n| 7       | 0.2.x           |\n\n## 📦 Installation\n\n```console\nnpm install @fivethree/lottie lottie-web --save\n\n# or if you are using yarn\nyarn add @fivethree/lottie lottie-web\n```\n\n## 🔨 Usage\n\nImport the module into your root application module:\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { LottieModule } from '@fivethree/lottie';\n\n@NgModule({\n  imports: [LottieModule]\n})\nexport class AppModule {}\n```\n\n## 🦁 Animation\n\nAdd the lottie component to your template:\n\n```html\n\u003cfiv-lottie\n  [params]=\"lottieParams\"\n  [width]=\"250\"\n  [height]=\"250\"\n  (animationCreated)=\"onAnimationCreated($event)\"\n\u003e\u003c/fiv-lottie\u003e\n```\n\nYou need to setup the `lottieParams` in your component:\n\n```typescript\nimport { Component } from '@angular/core';\nimport { LottieAnimation, LottieParams } from '@fivethree/lottie';\n\nComponent({\n  selector: 'app-home',\n  templateUrl: 'home.page.html',\n  styleUrls: ['home.page.scss']\n})\nexport class HomePage {\n  lottieParams: LottieParams = {\n    path: 'assets/lottie/empty_box.json',\n    renderer: 'canvas',\n    loop: true\n  };\n\n  onAnimationCreated(animation: LottieAnimation) {\n    animation.play();\n    animation.setSpeed(0.8);\n  }\n}\n```\n\nSave your lottie files in the assets folder and change the `path` param, this way they are copied when building your application.\n","funding_links":[],"categories":["Components","Complete projects"],"sub_categories":["Animations","Blogs and tutorials"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivethree-team%2Flottie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivethree-team%2Flottie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivethree-team%2Flottie/lists"}