loading animation

This commit is contained in:
2020-08-21 03:05:07 +05:00
parent 8915f9f7a0
commit 03f3465799
6 changed files with 14 additions and 6 deletions

View File

@@ -74,10 +74,15 @@
</div>
</div>
</div>
<div class="flex justify-center">
<div v-show="loading">
<lottie-player src="https://assets9.lottiefiles.com/private_files/lf30_bIUWq7.json" background="transparent" speed="3" style="width: 100px; height: 100px;" loop autoplay></lottie-player>
</div>
<button
:disabled="loading != 0"
v-show="loading == 0"
v-if="moreArticles"
@click="fetchNewArticles()"
class="ml-4 text-white h-10 flex items-center justify-center px-4 bg-main-link rounded shadow font-medium"
@@ -91,6 +96,7 @@
<script>
import * as moment from "moment";
export default {
props: {
source: Object