forked from viamrobotics/prime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loading process indicator option to button (viamrobotics#508)
- Loading branch information
1 parent
2dbfe52
commit a568d87
Showing
6 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- @TODO(mp) Rip this out and make it our canonical loader. --> | ||
<div class="container -ml-1 flex w-4 items-center p-[1.5px]"> | ||
{#each { length: 8 } as _, index} | ||
<div | ||
style=" | ||
transform: rotate({index * 45}deg); | ||
animation-delay: {index * 100}ms; | ||
" | ||
class="pill absolute -mt-[0.5px] h-px w-[3px] rounded-[1px] bg-gray-8" | ||
/> | ||
{/each} | ||
</div> | ||
|
||
<style> | ||
.pill { | ||
transform-origin: 6.5px 0.5px; | ||
animation: 0.8s linear 0s infinite fadeout; | ||
} | ||
@keyframes fadeout { | ||
0% { | ||
opacity: 1; | ||
} | ||
100% { | ||
opacity: 0.2; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters