Awesome Open Source
Awesome Open Source

Lottie Animation View for Angular (React, Vue)

Build Status npm version GitHub issues GitHub stars GitHub license


Renamed from lottie-angular2 after angular4 supported

Wapper of bodymovin.js

bodymovin is Adobe After Effects plugin for exporting animations as JSON, also it provide bodymovin.js for vender them as svg/canvas/html.

Why Lottie?

Flexible After Effects features

We currently support solids, shape layers, masks, alpha mattes, trim paths, and dash patterns. And we’ll be adding new features on a regular basis.

Manipulate your animation any way you like

You can go forward, backward, and most importantly you can program your animation to respond to any interaction.

Small file sizes

Bundle 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.

Learn more

Looking for lottie files ›


Install through npm:

npm install --save ng-lottie

Then include in your apps module:

import { Component, NgModule } from '@angular/core';
import { LottieAnimationViewModule } from 'ng-lottie';

  imports: [
export class MyModule {}

Finally use in one of your apps components:

import {Component} from '@angular/core';

    selector: 'lottie-animation-view-demo-app',
    template: ` <lottie-animation-view
              <div id="player">
                <p>Speed: x{{animationSpeed}}</p>
                <div class="range-container">
                  <input #range type="range" value="1" min="0" max="3" step="0.5"
                <button (click)="stop()">stop</button>
                <button (click)="pause()">pause</button>
                <button (click)="play()">play</button>

export class DemoComponent {

    public lottieConfig: Object;
    private anim: any;
    private animationSpeed: number = 1;

    constructor() {
        this.lottieConfig = {
            path: 'assets/pinjump.json',
            renderer: 'canvas',
            autoplay: true,
            loop: true

    handleAnimation(anim: any) {
        this.anim = anim;

    stop() {

    play() {;

    pause() {

    setSpeed(speed: number) {
        this.animationSpeed = speed;


Related Projects


Your contributions and suggestions are heartily welcome.



Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,555,308
Angular (12,684
Angular2 (2,056
Ionic (1,656
Angular4 (1,462
Ionic3 (547
Lottie (213
After Effects (137
Related Projects