Difference between revisions of "Template:Westminster UK2"

Line 810: Line 810:
  
  
.container {
+
.spinner {
width: 200px;
+
  position: absolute;
height: 100px;
+
  width: 128px;
padding-top: 100px;
+
  height: 128px;
margin: 0 auto;
+
  top: calc(50% - 64px);
 +
  left: calc(50% - 64px);
 +
  -webkit-transform: perspective(206px) rotateX(45deg);
 +
          transform: perspective(206px) rotateX(45deg);
 
}
 
}
  
.ball {
+
.outer {
width: 10px;
+
  box-sizing: border-box;
height: 10px;
+
  -webkit-animation: spin 3s linear infinite;
margin: 10px auto;
+
          animation: spin 3s linear infinite;
border-radius: 50px;
+
  height: 100%;
 
}
 
}
  
.ball:nth-child(1) {
+
.inner {
background: #ff005d;
+
  position: absolute;
-webkit-animation: right 1s infinite ease-in-out;
+
  border-radius: 50%;
-moz-animation: right 1s infinite ease-in-out;
+
  width: 64px;
animation: right 1s infinite ease-in-out;
+
  height: 64px;
 +
  -webkit-animation: spin 1.8s ease-in-out infinite;
 +
          animation: spin 1.8s ease-in-out infinite;
 
}
 
}
 
+
.inner.tl {
.ball:nth-child(2) {
+
  top: 0;
background: #35ff99;
+
  left: 0;
-webkit-animation: left 1.1s infinite ease-in-out;
+
  border-top: 2px solid #531430;
-moz-animation: left 1.1s infinite ease-in-out;
+
  border-left: 4px solid #531430;
animation: left 1.1s infinite ease-in-out;
+
 
}
 
}
 
+
.inner.tr {
.ball:nth-child(3) {
+
  top: 0;
background: #008597;
+
  right: 0;
-webkit-animation: right 1.05s infinite ease-in-out;
+
  border-top: 2px solid #e04960;
-moz-animation: right 1.05s infinite ease-in-out;
+
  border-right: 4px solid #e04960;
animation: right 1.05s infinite ease-in-out;
+
 
}
 
}
 
+
.inner.br {
.ball:nth-child(4) {
+
  bottom: 0;
background: #ffcc00;
+
  right: 0;
-webkit-animation: left 1.15s infinite ease-in-out;
+
  border-bottom: 2px solid #531430;
-moz-animation: left 1.15s infinite ease-in-out;
+
  border-right: 4px solid #531430;
animation: left 1.15s infinite ease-in-out;
+
 
}
 
}
 
+
.inner.bl {
.ball:nth-child(5) {
+
  bottom: 0;
background: #2d3443;
+
  left: 0;
-webkit-animation: right 1.1s infinite ease-in-out;
+
  border-bottom: 2px solid #e04960;
-moz-animation: right 1.1s infinite ease-in-out;
+
  border-left: 4px solid #e04960;
animation: right 1.1s infinite ease-in-out;
+
 
}
 
}
  
.ball:nth-child(6) {
+
@-webkit-keyframes spin {
background: #ff7c35;
+
  0% {
-webkit-animation: left 1.05s infinite ease-in-out;
+
    -webkit-transform: rotate(0deg);
-moz-animation: left 1.05s infinite ease-in-out;
+
            transform: rotate(0deg);
animation: left 1.05s infinite ease-in-out;
+
  }
 +
  100% {
 +
    -webkit-transform: rotate(360deg);
 +
            transform: rotate(360deg);
 +
  }
 
}
 
}
  
.ball:nth-child(7) {
+
@keyframes spin {
background: #4d407c;
+
  0% {
-webkit-animation: right 1s infinite ease-in-out;
+
    -webkit-transform: rotate(0deg);
-moz-animation: right 1s infinite ease-in-out;
+
            transform: rotate(0deg);
animation: right 1s infinite ease-in-out;
+
  }
 +
  100% {
 +
    -webkit-transform: rotate(360deg);
 +
            transform: rotate(360deg);
 +
  }
 
}
 
}
 
@-webkit-keyframes right {
 
0% {
 
-webkit-transform: translate(-15px);
 
}
 
50% {
 
-webkit-transform: translate(15px);
 
}
 
100% {
 
-webkit-transform: translate(-15px);
 
}
 
}
 
 
@-webkit-keyframes left {
 
0% {
 
-webkit-transform: translate(15px);
 
}
 
50% {
 
-webkit-transform: translate(-15px);
 
}
 
100% {
 
-webkit-transform: translate(15px);
 
}
 
}
 
 
@-moz-keyframes right {
 
0% {
 
-moz-transform: translate(-15px);
 
}
 
50% {
 
-moz-transform: translate(15px);
 
}
 
100% {
 
-moz-transform: translate(-15px);
 
}
 
}
 
 
@-moz-keyframes left {
 
0% {
 
-moz-transform: translate(15px);
 
}
 
50% {
 
-moz-transform: translate(-15px);
 
}
 
100% {
 
-moz-transform: translate(15px);
 
}
 
}
 
 
@keyframes right {
 
0% {
 
transform: translate(-15px);
 
}
 
50% {
 
transform: translate(15px);
 
}
 
100% {
 
transform: translate(-15px);
 
}
 
}
 
 
@keyframes left {
 
0% {
 
transform: translate(15px);
 
}
 
50% {
 
transform: translate(-15px);
 
}
 
100% {
 
transform: translate(15px);
 
}
 
}
 
 
 
/***************************************************** RESPONSIVE STYLING ****************************************************/
 
/***************************************************** RESPONSIVE STYLING ****************************************************/
  
Line 1,025: Line 961:
 
<div class="overlay"><div>
 
<div class="overlay"><div>
 
LOADING...
 
LOADING...
<div class="container">
+
<div class="spinner">
   <div class="ball"></div>
+
   <div class="outer">
  <div class="ball"></div>
+
    <div class="inner tl"></div>
  <div class="ball"></div>
+
    <div class="inner tr"></div>
  <div class="ball"></div>
+
    <div class="inner br"></div>
  <div class="ball"></div>
+
    <div class="inner bl"></div>
   <div class="ball"></div>
+
   </div>
  <div class="ball"></div>
+
 
</div>
 
</div>
  

Revision as of 22:04, 27 July 2017

BioBusters
LOADING...

TEST BIO BUSTERS