-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from So-Fan/staging
Staging
- Loading branch information
Showing
12 changed files
with
392 additions
and
135 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
101 changes: 101 additions & 0 deletions
101
client/src/Components/LoadingAnimation/LoadingAnimation.css
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,101 @@ | ||
.lds-ripple { | ||
display: inline-block; | ||
position: relative; | ||
width: 80px; | ||
height: 80px; | ||
} | ||
.lds-ripple div { | ||
position: absolute; | ||
border: 4px solid #f6d463; | ||
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; | ||
} | ||
.lds-ellipsis { | ||
display: inline-block; | ||
position: relative; | ||
width: 80px; | ||
height: 80px; | ||
} | ||
.lds-ellipsis div { | ||
position: absolute; | ||
top: 33px; | ||
width: 13px; | ||
height: 13px; | ||
border-radius: 50%; | ||
background: #f6d463; | ||
animation-timing-function: cubic-bezier(0, 1, 1, 0); | ||
} | ||
.lds-ellipsis div:nth-child(1) { | ||
left: 8px; | ||
animation: lds-ellipsis1 0.6s infinite; | ||
} | ||
.lds-ellipsis div:nth-child(2) { | ||
left: 8px; | ||
animation: lds-ellipsis2 0.6s infinite; | ||
} | ||
.lds-ellipsis div:nth-child(3) { | ||
left: 32px; | ||
animation: lds-ellipsis2 0.6s infinite; | ||
} | ||
.lds-ellipsis div:nth-child(4) { | ||
left: 56px; | ||
animation: lds-ellipsis3 0.6s infinite; | ||
} | ||
@keyframes lds-ellipsis1 { | ||
0% { | ||
transform: scale(0); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} | ||
@keyframes lds-ellipsis3 { | ||
0% { | ||
transform: scale(1); | ||
} | ||
100% { | ||
transform: scale(0); | ||
} | ||
} | ||
@keyframes lds-ellipsis2 { | ||
0% { | ||
transform: translate(0, 0); | ||
} | ||
100% { | ||
transform: translate(24px, 0); | ||
} | ||
} | ||
@keyframes lds-ripple { | ||
0% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
4.9% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 0; | ||
} | ||
5% { | ||
top: 36px; | ||
left: 36px; | ||
width: 0; | ||
height: 0; | ||
opacity: 1; | ||
} | ||
100% { | ||
top: 0px; | ||
left: 0px; | ||
width: 72px; | ||
height: 72px; | ||
opacity: 0; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
client/src/Components/LoadingAnimation/LoadingAnimation.js
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,27 @@ | ||
import React from "react"; | ||
import "./LoadingAnimation.css"; | ||
function LoadingAnimation({ ellipsisAnimation }) { | ||
return ( | ||
<> | ||
{ellipsisAnimation ? ( | ||
<> | ||
<div className="lds-ellipsis"> | ||
<div></div> | ||
<div></div> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
</> | ||
) : ( | ||
<> | ||
<div className="lds-ripple"> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
</> | ||
)} | ||
</> | ||
); | ||
} | ||
|
||
export default LoadingAnimation; |
46 changes: 0 additions & 46 deletions
46
client/src/Components/LoadingEllipsisAnimation/LoadingEllipsisAnimation.css
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
client/src/Components/LoadingEllipsisAnimation/LoadingEllipsisAnimation.js
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.