-
Notifications
You must be signed in to change notification settings - Fork 14
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 #45 from tomaszrondio/master
feature: targeted publishing loading spinner
- Loading branch information
Showing
4 changed files
with
79 additions
and
6 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
40 changes: 40 additions & 0 deletions
40
client/extensions/targetedPublishing/components/Loading.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,40 @@ | ||
.spinner { | ||
margin: 10px auto 0; | ||
width: 70px; | ||
text-align: center; | ||
} | ||
|
||
.spinner > div { | ||
width: 10px; | ||
height: 10px; | ||
background-color: rgba(255, 255, 255, 0.5); | ||
border-radius: 100%; | ||
display: inline-block; | ||
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both; | ||
animation: sk-bouncedelay 1.4s infinite ease-in-out both; | ||
} | ||
|
||
.spinner .bounce1 { | ||
-webkit-animation-delay: -0.32s; | ||
animation-delay: -0.32s; | ||
} | ||
|
||
.spinner .bounce2 { | ||
-webkit-animation-delay: -0.16s; | ||
animation-delay: -0.16s; | ||
} | ||
|
||
@-webkit-keyframes sk-bouncedelay { | ||
0%, 80%, 100% { -webkit-transform: scale(0) } | ||
40% { -webkit-transform: scale(1.0) } | ||
} | ||
|
||
@keyframes sk-bouncedelay { | ||
0%, 80%, 100% { | ||
-webkit-transform: scale(0); | ||
transform: scale(0); | ||
} 40% { | ||
-webkit-transform: scale(1.0); | ||
transform: scale(1.0); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
client/extensions/targetedPublishing/components/Loading.jsx
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,15 @@ | ||
/* eslint-disable */ | ||
import React from 'react' | ||
import './Loading.css'; | ||
|
||
function Loading() { | ||
return ( | ||
<div className="spinner"> | ||
<div className="bounce1"></div> | ||
<div className="bounce2"></div> | ||
<div className="bounce3"></div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Loading |
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