-
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.
- Loading branch information
Showing
6 changed files
with
95 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ export class SideDrawer { | |
} | ||
|
||
@Method() | ||
open() { | ||
async open() { | ||
this.opened = true; | ||
} | ||
|
||
|
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,46 @@ | ||
.lds-ripple { | ||
display: inline-block; | ||
position: relative; | ||
width: 40px; | ||
height: 40px; | ||
} | ||
.lds-ripple div { | ||
position: absolute; | ||
border: 4px solid #fff; | ||
opacity: 1; | ||
border-radius: 50%; | ||
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite; | ||
} | ||
.lds-ripple div:nth-child(2) { | ||
animation-delay: -0.5s; | ||
} | ||
@keyframes lds-ripple { | ||
0% { | ||
top: 18px; | ||
left: 18px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
4.9% { | ||
top: 18px; | ||
left: 18px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
5% { | ||
top: 18px; | ||
left: 18px; | ||
width: 0; | ||
height: 0; | ||
opacity: 1; | ||
} | ||
100% { | ||
top: 0px; | ||
left: 0px; | ||
width: 36px; | ||
height: 36px; | ||
opacity: 0; | ||
} | ||
} |
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,17 @@ | ||
import { Component, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'vaz-spinner', | ||
styleUrl: './spinner.css', | ||
shadow: true, | ||
}) | ||
export class Spinner { | ||
render() { | ||
return ( | ||
<div class="lds-ripple"> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
); | ||
} | ||
} |
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