├── .babelrc
├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── dist
├── build.js
├── build.js.map
└── logo.png
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── assets
│ ├── logo.png
│ └── pinjump.json
├── lottie.vue
└── main.js
└── webpack.config.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["env"]
3 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log
4 | yarn-error.log
5 | .idea
6 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4 |
5 |
6 | ## [0.2.1](https://github.com/chenqingspring/vue-lottie/compare/v0.2.0...v0.2.1) (2018-04-02)
7 |
8 |
9 |
10 |
11 | # [0.2.0](https://github.com/chenqingspring/vue-lottie/compare/v0.1.2...v0.2.0) (2018-04-02)
12 |
13 |
14 |
15 |
16 | ## [0.1.2](https://github.com/chenqingspring/vue-lottie/compare/v0.1.1...v0.1.2) (2017-12-06)
17 |
18 |
19 |
20 |
21 | ## [0.1.1](https://github.com/chenqingspring/vue-lottie/compare/v0.1.0...v0.1.1) (2017-12-06)
22 |
23 |
24 |
25 |
26 | # [0.1.0](https://github.com/chenqingspring/vue-lottie/compare/v0.0.4...v0.1.0) (2017-07-07)
27 |
28 |
29 |
30 |
31 | ## [0.0.3](https://github.com/chenqingspring/vue-lottie/compare/v0.0.2...v0.0.3) (2017-05-03)
32 |
33 |
34 |
35 |
36 | ## [0.0.2](https://github.com/chenqingspring/vue-lottie/compare/v0.0.1...v0.0.2) (2017-05-03)
37 |
38 |
39 |
40 |
41 | ## 0.0.1 (2017-05-03)
42 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 CHEN Qing
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Lottie Animation View for Vue ([React](https://github.com/chenqingspring/react-lottie), [Angular](https://github.com/chenqingspring/ng-lottie))
2 |
3 | [](http://badge.fury.io/js/vue-lottie)
4 |
5 | Generated by [create-vue-component](https://github.com/chenqingspring/create-vue-component)
6 |
7 | ## Wapper of bodymovin.js
8 |
9 | [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.
10 |
11 | ## Demo
12 | https://chenqingspring.github.io/vue-lottie
13 |
14 | ## Why Lottie?
15 |
16 | #### Flexible After Effects features
17 | 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.
18 |
19 | #### Manipulate your animation any way you like
20 | You can go forward, backward, and most importantly you can program your animation to respond to any interaction.
21 |
22 | #### Small file sizes
23 | 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.
24 |
25 | [Learn more](http://airbnb.design/introducing-lottie/) › http://airbnb.design/lottie/
26 |
27 | Looking for lottie files › https://www.lottiefiles.com/
28 |
29 |
30 | ## Installation
31 |
32 | Install through npm:
33 | ```
34 | npm install --save vue-lottie
35 | ```
36 |
37 | ## Usage
38 |
39 | ```vue
40 |
41 |
42 |
43 |
44 |
Speed: x{{animationSpeed}}
45 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
92 |
93 | ```
94 | ## Configuration
95 |
96 | You can pass a configuration object through `options` property:
97 | * animationData: an Object with the exported animation data.
98 | * path: the relative path to the animation object. (animationData and path are mutually exclusive)
99 | * loop: true / false / number
100 | * autoplay: true / false it will start playing as soon as it is ready
101 | * name: animation name for future reference
102 | * renderer: 'svg' / 'canvas' / 'html' to set the renderer
103 | * container: the dom element on which to render the animation
104 |
105 | More information on [Bodymoving Documentation](https://github.com/bodymovin/bodymovin)
106 |
107 | ## Related Projects
108 |
109 | * [Bodymovin](https://github.com/bodymovin/bodymovin) vue-lottie is a wrapper of bodymovin
110 | * [Angular Lottie](https://github.com/chenqingspring/ng-lottie) angular implementation
111 | * [React Lottie](https://github.com/chenqingspring/react-lottie) react implementation
112 | * [React Native Lottie](https://github.com/airbnb/lottie-react-native) react native implementation by airbnb
113 | * [IOS Lottie](https://github.com/airbnb/lottie-ios) ios implementation by airbnb
114 | * [Android Lottie](https://github.com/airbnb/lottie-android) android implementation by airbnb
115 |
116 | ## Contribution
117 |
118 | Your contributions and suggestions are heartily welcome.
119 |
120 | ## License
121 | MIT
122 |
--------------------------------------------------------------------------------
/dist/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chenqingspring/vue-lottie/d66265f6d31f50dab4269f5a1fef7c7e29d5299d/dist/logo.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |