{"id":13535718,"url":"https://github.com/chenqingspring/ng-lottie","last_synced_at":"2025-05-16T18:10:17.688Z","repository":{"id":43445256,"uuid":"82019369","full_name":"chenqingspring/ng-lottie","owner":"chenqingspring","description":"Render After Effects animations on Angular based on lottie-web ","archived":false,"fork":false,"pushed_at":"2022-12-07T01:01:05.000Z","size":6841,"stargazers_count":339,"open_issues_count":74,"forks_count":98,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-12T17:46:36.353Z","etag":null,"topics":["after-effects","angular","angular-module","angular2","angular4","bodymovin","ionic","ionic3","lottie","lottie-animation","lottie-web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/chenqingspring.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":"2017-02-15T04:13:31.000Z","updated_at":"2024-12-28T03:40:38.000Z","dependencies_parsed_at":"2022-08-28T07:00:17.996Z","dependency_job_id":null,"html_url":"https://github.com/chenqingspring/ng-lottie","commit_stats":null,"previous_names":["chenqingspring/lottie-angular2"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenqingspring%2Fng-lottie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenqingspring%2Fng-lottie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenqingspring%2Fng-lottie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenqingspring%2Fng-lottie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenqingspring","download_url":"https://codeload.github.com/chenqingspring/ng-lottie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582907,"owners_count":22095518,"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":["after-effects","angular","angular-module","angular2","angular4","bodymovin","ionic","ionic3","lottie","lottie-animation","lottie-web"],"created_at":"2024-08-01T09:00:23.927Z","updated_at":"2025-05-16T18:10:17.666Z","avatar_url":"https://github.com/chenqingspring.png","language":"JavaScript","funding_links":[],"categories":["Libraries","Components","Complete projects","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)"],"sub_categories":["Creation Tools","Animations","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"readme":"# Lottie Animation View for Angular ([React](https://github.com/chenqingspring/react-lottie), [Vue](https://github.com/chenqingspring/vue-lottie))\n\n[![Build Status](https://travis-ci.org/chenqingspring/ng-lottie.svg?branch=master)](https://travis-ci.org/chenqingspring/ng-lottie)\n[![npm version](https://badge.fury.io/js/ng-lottie.svg)](http://badge.fury.io/js/ng-lottie)\n[![GitHub issues](https://img.shields.io/github/issues/chenqingspring/ng-lottie.svg)](https://github.com/chenqingspring/ng-lottie/issues)\n[![GitHub stars](https://img.shields.io/github/stars/chenqingspring/ng-lottie.svg)](https://github.com/chenqingspring/ng-lottie/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/chenqingspring/ng-lottie/master/LICENSE)\n\n## Demo\nhttps://chenqingspring.github.io/ng-lottie/demo/\n\nRenamed from ***lottie-angular2*** after angular4 supported\n\n## Wapper of bodymovin.js\n\n[bodymovin](https://github.com/bodymovin/bodymovin) is [Adobe After Effects](http://www.adobe.com/products/aftereffects.html) plugin for exporting animations as JSON, also it provide bodymovin.js for vender them as svg/canvas/html.\n\n## Why Lottie?\n\n#### Flexible After Effects features\nWe currently support solids, shape layers, masks, alpha mattes, trim paths, and dash patterns. And we’ll be adding new features on a regular basis.\n\n#### Manipulate your animation any way you like\nYou can go forward, backward, and most importantly you can program your animation to respond to any interaction.\n\n#### Small file sizes\nBundle vector animations within your app without having to worry about multiple dimensions or large file sizes. Alternatively, you can decouple animation files from your app’s code entirely by loading them from a JSON API.\n\n[Learn more](http://airbnb.design/introducing-lottie/) › http://airbnb.design/lottie/\n\nLooking for lottie files › https://www.lottiefiles.com/\n\n## Installation\n\nInstall through npm:\n```\nnpm install --save ng-lottie\n```\n\nThen include in your apps module:\n\n```typescript\nimport { Component, NgModule } from '@angular/core';\nimport { LottieAnimationViewModule } from 'ng-lottie';\n\n@NgModule({\n  imports: [\n    LottieAnimationViewModule.forRoot()\n  ]\n})\nexport class MyModule {}\n```\n\nFinally use in one of your apps components:\n```typescript\nimport {Component} from '@angular/core';\n\n@Component({\n    selector: 'lottie-animation-view-demo-app',\n    template: ` \u003clottie-animation-view\n                    [options]=\"lottieConfig\"\n                    [width]=\"300\"\n                    [height]=\"600\"\n                    (animCreated)=\"handleAnimation($event)\"\u003e\n              \u003c/lottie-animation-view\u003e\n              \u003cdiv id=\"player\"\u003e\n                \u003cp\u003eSpeed: x{{animationSpeed}}\u003c/p\u003e\n                \u003cdiv class=\"range-container\"\u003e\n                  \u003cinput #range type=\"range\" value=\"1\" min=\"0\" max=\"3\" step=\"0.5\"\n                    (change)=\"setSpeed(range.value)\"\u003e\n                \u003c/div\u003e\n                \u003cbutton (click)=\"stop()\"\u003estop\u003c/button\u003e\n                \u003cbutton (click)=\"pause()\"\u003epause\u003c/button\u003e\n                \u003cbutton (click)=\"play()\"\u003eplay\u003c/button\u003e\n              \u003c/div\u003e`\n})\n\nexport class DemoComponent {\n\n    public lottieConfig: Object;\n    private anim: any;\n    private animationSpeed: number = 1;\n\n    constructor() {\n        this.lottieConfig = {\n            path: 'assets/pinjump.json',\n            renderer: 'canvas',\n            autoplay: true,\n            loop: true\n        };\n    }\n\n    handleAnimation(anim: any) {\n        this.anim = anim;\n    }\n\n    stop() {\n        this.anim.stop();\n    }\n\n    play() {\n        this.anim.play();\n    }\n\n    pause() {\n        this.anim.pause();\n    }\n\n    setSpeed(speed: number) {\n        this.animationSpeed = speed;\n        this.anim.setSpeed(speed);\n    }\n\n}\n\n```\n\n## Related Projects\n\n* [Bodymovin](https://github.com/bodymovin/bodymovin) ng-lottie is a wrapper of bodymovin\n* [Ionic Lottie](https://github.com/yannbf/ionic-lottie) Thanks for @yannbf demonstrating ng-lottie on ionic3\n* [React Lottie](https://github.com/chenqingspring/react-lottie) react implementation\n* [Vue Lottie](https://github.com/chenqingspring/vue-lottie) vue implementation\n* [React Native Lottie](https://github.com/airbnb/lottie-react-native) react native implementation by airbnb\n* [IOS Lottie](https://github.com/airbnb/lottie-ios) ios implementation by airbnb\n* [Android Lottie](https://github.com/airbnb/lottie-android) android implementation by airbnb\n\n## Contribution\n\nYour contributions and suggestions are heartily welcome.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenqingspring%2Fng-lottie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenqingspring%2Fng-lottie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenqingspring%2Fng-lottie/lists"}