Skip to content

Commit

Permalink
Update: Chinh lai 1 tron xoay
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoang Nam committed Feb 17, 2017
1 parent b9e55c3 commit f4934ac
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 33 deletions.
154 changes: 154 additions & 0 deletions dev-ws-wating.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
.ws-wating {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, .7);
z-index: 999999;
}

.ws-wating-content {
position: absolute;
top: calc(50% - 30px);
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
width: 80px;
height: 80px;
background-color: #0075ff;
border: 3px solid #FFF;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
align-items: center;
-ms-align-items: center;
align-items: center;
}

.ws-wating-load {
width: 100%;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
-webkit-animation: aniWaiting 1.2s linear infinite;
-moz-animation: aniWaiting 1.2s linear infinite;
-ms-animation: aniWaiting 1.2s linear infinite;
-o-animation: aniWaiting 1.2s linear infinite;
animation: aniWaiting 1.2s linear infinite;
}

.ws-wating-load:before {
content: "";
width: 20px;
height: 20px;
background-color: yellow;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}

.ws-wating-text {
position: absolute;
top: 12px;
width: 100%;
font-size: 14px;
color: #FFF;
text-align: center;
}

.ws-wating-text p:first-of-type {
font-weight: bold;
color: yellow;
}

.ws-wating-text p:last-of-type {
color: #DDD;
font-size: 12px;
}

@-webkit-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-moz-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-ms-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-o-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>WS WATING</title>
<meta charset="utf-8">
<link rel="stylesheet" href="ws-wating.min.css">
<link rel="stylesheet" href="dev-ws-wating.css">
</head>
<body>
<div id="ws-wating" class="ws-wating clearfix">
Expand Down
11 changes: 0 additions & 11 deletions index2.html

This file was deleted.

48 changes: 28 additions & 20 deletions ws-wating.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.ws-wating {
display: none;
position: fixed;
top: 0;
left: 0;
Expand All @@ -8,6 +7,7 @@
background-color: rgba(0, 0, 0, .7);
z-index: 999999;
}

.ws-wating-content {
position: absolute;
top: calc(50% - 30px);
Expand All @@ -32,35 +32,32 @@
-ms-align-items: center;
align-items: center;
}

.ws-wating-load {
width: 100%;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
-webkit-animation: aniWaiting 1s linear infinite;
-moz-animation: aniWaiting 1s linear infinite;
-ms-animation: aniWaiting 1s linear infinite;
-o-animation: aniWaiting 1s linear infinite;
animation: aniWaiting 1s linear infinite;

-webkit-animation: aniWaiting 1.2s linear infinite;
-moz-animation: aniWaiting 1.2s linear infinite;
-ms-animation: aniWaiting 1.2s linear infinite;
-o-animation: aniWaiting 1.2s linear infinite;
animation: aniWaiting 1.2s linear infinite;
}
.ws-wating-load:before,
.ws-wating-load:after {

.ws-wating-load:before {
content: "";
width: 15px;
height: 15px;
background-color: #FFF;
width: 20px;
height: 20px;
background-color: yellow;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}
.ws-wating-load:after {
margin-left: auto;
}

.ws-wating-text {
position: absolute;
Expand All @@ -70,10 +67,12 @@
color: #FFF;
text-align: center;
}

.ws-wating-text p:first-of-type {
font-weight: bold;
color: yellow;
}

.ws-wating-text p:last-of-type {
color: #DDD;
font-size: 12px;
Expand All @@ -85,59 +84,68 @@
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
} to {
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-moz-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
} to {
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-ms-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
} to {
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@-o-keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
} to {
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@keyframes aniWaiting {
from {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
} to {
}
to {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
Expand Down
2 changes: 1 addition & 1 deletion ws-wating.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4934ac

Please sign in to comment.