Skip to content

Instantly share code, notes, and snippets.

@bobuss
Created June 20, 2012 10:34
Show Gist options
  • Save bobuss/2959274 to your computer and use it in GitHub Desktop.
Save bobuss/2959274 to your computer and use it in GitHub Desktop.
CSS3 Sign
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Sign</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="box">
<h1>Wanted</h1>
</div>
<div class="box delay1">
<h1>Dead</h1>
</div>
<div class="box delay2">
<h1>or</h1>
</div>
<div class="box delay3">
<h1>Alive</h1>
</div>
</div>
</body>
</html>
.container {
width: 600px;
height: 460px;
position: relative;
margin: 50px auto;
-webkit-perspective: 800px;
-moz-perspective: 800px;
}
.box {
margin : 10px;
height: 50px;
width: 260px;
background: grey;
border : solid 1px #FE9939;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-webkit-animation: spin 4s infinite alternate ease-in-out;
-moz-animation: spin 4s infinite alternate ease-in-out;
}
.delay1 {
-webkit-animation-delay: -1s;
}
.delay2 {
-webkit-animation-delay: -2s;
}
.delay3 {
-webkit-animation-delay: -3s;
}
.box h1{
color : #FE9939;
text-align : center;
line-height : 0px;
font-size: 40px;
}
@-moz-keyframes "spin" {
0% {
-moz-transform: rotateY(-20deg);
transform: rotateY(-20deg);
}
100% {
-moz-transform: rotateY(20deg);
transform: rotateY(20deg);
}
}
@-webkit-keyframes "spin" {
0% {
-webkit-transform: rotateY(-20deg);
transform: rotateY(-20deg);
}
100% {
-webkit-transform: rotateY(20deg);
transform: rotateY(20deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment