Skip to content

Commit

Permalink
replace bodymovin of lottie-web
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqingspring committed Apr 2, 2018
1 parent 7d811e4 commit 8fb0178
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"release": "git add package.json && git commit -m 'chore: bump version number' && standard-version --first-release && git push --follow-tags origin master && npm run build && npm publish && git checkout ."
},
"dependencies": {
"bodymovin": "^4.8.0"
"lottie-web": "^5.1.9"
},
"peerDependencies": {
"vue": "^2.5.16"
Expand Down
4 changes: 2 additions & 2 deletions src/lottie.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script>
import bodymovin from 'bodymovin';
import lottie from 'lottie-web';
export default {
props: {
Expand All @@ -27,7 +27,7 @@
},
mounted () {
this.anim = bodymovin.loadAnimation({
this.anim = lottie.loadAnimation({
container: this.$refs.lavContainer,
renderer: 'svg',
loop: this.options.loop !== false,
Expand Down

0 comments on commit 8fb0178

Please sign in to comment.