Skip to content

Instantly share code, notes, and snippets.

@highsmithcodes
Created June 30, 2016 09:16
Show Gist options
  • Save highsmithcodes/88f74649c2c17daae328cde7e47877d4 to your computer and use it in GitHub Desktop.
Save highsmithcodes/88f74649c2c17daae328cde7e47877d4 to your computer and use it in GitHub Desktop.
Processing
<html>
<head>
<link rel="stylesheet" href="css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Actor' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="loader">
<h1>PROCESSING</h1>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>
body{
background:#439472;
background: -webkit-gradient(radial, center center, 120, center center, 900, from() to());
background:-moz-radial-gradient(circle, #33495E, #2E2329);
}
.loader{
margin:200px auto;
}
h1{
font-family: 'Actor', sans-serif;
color:#FFF;
font-size:16px;
letter-spacing:1px;
font-weight:200;
text-align:center;
}
.loader span{
width:16px;
height:16px;
border-radius:50%;
display:inline-block;
position:absolute;
left:50%;
margin-left:-10px;
-webkit-animation:3s infinite linear;
-moz-animation:3s infinite linear;
-o-animation:3s infinite linear;
}
.loader span:nth-child(2){
background:#E84C3D;
-webkit-animation:kiri 1.2s infinite linear;
-moz-animation:kiri 1.2s infinite linear;
-o-animation:kiri 1.2s infinite linear;
}
.loader span:nth-child(3){
background:#F1C40F;
z-index:100;
}
.loader span:nth-child(4){
background:#2FCC71;
-webkit-animation:kanan 1.2s infinite linear;
-moz-animation:kanan 1.2s infinite linear;
-o-animation:kanan 1.2s infinite linear;
}
@-webkit-keyframes kanan {
0% {-webkit-transform:translateX(20px);
}
50%{-webkit-transform:translateX(-20px);
}
100%{-webkit-transform:translateX(20px);
z-index:200;
}
}
@-moz-keyframes kanan {
0% {-moz-transform:translateX(20px);
}
50%{-moz-transform:translateX(-20px);
}
100%{-moz-transform:translateX(20px);
z-index:200;
}
}
@-o-keyframes kanan {
0% {-o-transform:translateX(20px);
}
50%{-o-transform:translateX(-20px);
}
100%{-o-transform:translateX(20px);
z-index:200;
}
}
@-webkit-keyframes kiri {
0% {-webkit-transform:translateX(-20px);
z-index:200;
}
50%{-webkit-transform:translateX(20px);
}
100%{-webkit-transform:translateX(-20px);
}
}
@-moz-keyframes kiri {
0% {-moz-transform:translateX(-20px);
z-index:200;
}
50%{-moz-transform:translateX(20px);
}
100%{-moz-transform:translateX(-20px);
}
}
@-o-keyframes kiri {
0% {-o-transform:translateX(-20px);
z-index:200;
}
50%{-o-transform:translateX(20px);
}
100%{-o-transform:translateX(-20px);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment