Skip to content

Commit

Permalink
chore(templates): animate the loading bar too
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Jul 12, 2022
1 parent 54dc4c8 commit 6680043
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/ui-templates/templates/loading/index.html
Expand Up @@ -19,7 +19,7 @@
width: 100%;
background-size: 200% auto;
background-position: 0 0;
animation: gradient 2s infinite;
animation: gradient 2s infinite, width 8s infinite ease-in-out;
animation-fill-mode: forwards;
animation-timing-function: linear;
}
Expand All @@ -36,6 +36,17 @@
background-position: -200% 0;
}
}
@keyframes width {
0% {
width: 100%;
}
50% {
width: 0%;
}
100% {
width: 100%;
}
}
</style>
</head>
<body class="relative min-h-screen bg-white dark:bg-black flex flex-col justify-center items-center text-center">
Expand All @@ -49,7 +60,7 @@
<div class="spotlight-wrapper">
<div class="fixed left-0 right-0 spotlight spotlight-bottom z-q0"></div>
</div>
<div class="nuxt-loader-bar h-[4px] w-80 inline rounded"/>
<div class="nuxt-loader-bar h-[4px] inline rounded"/>
<script>
const nuxtImg = window.document.getElementById('nuxtImg')
const body = window.document.body
Expand Down

0 comments on commit 6680043

Please sign in to comment.