Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created July 19, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/3df7b4d226de9f77f8fb to your computer and use it in GitHub Desktop.
Save chuck0523/3df7b4d226de9f77f8fb to your computer and use it in GitHub Desktop.
body{
background-color:#ccc;
}
.nav {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
}
.nav div {
float: left;
width: 25%;
width: calc(100%/4);
list-style-type:none;
}
.nav div a{
display: block;
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
text-decoration: none;
color: #fff;
background:rgba(0,0,0,0.6);
font-size: 13px;
letter-spacing: 3px;
transition:all 0.5s ease-in-out;
transition:color 1s ease;
}
.nav div a:hover{
color:#d00;
}
.stage{
position: fixed;
top: 0;
left: 0;
-webkit-perspective: 1000;
-ms-perspective: 1000;
-o-perspective: 1000;
-moz-perspective: 1000px;
perspective: 1000;
}
.cube {
position: relative;
margin:0 auto;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
transition:all 1s;
}
.cube div {
position: absolute;
color: #fff;
text-align: center;
}
.cube_top {
background-image:url("smilingDog.jpg");
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
top: -50px;
left: 0px;
-webkit-transform: rotateX(90deg);
transform: rotateX(90deg);
}
.cube_top>div{
margin-top:100px;
margin-left:50px;
text-align:left;
font-size:30px;
text-shadow:1px 1px 1px rgba(0,0,0,0.9);
}
.cube_bottom {
background-image:url("nightStreet.jpg");
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
left: 0px;
-webkit-transform: rotateX(-90deg);
transform: rotateX(-90deg);
}
.cube_bottom div{
margin-top:400px;
margin-right:150px;
text-align:right;
font-size:50px;
text-shadow:4px 4px 5px rgba(0,0,0,0.9);
}
.cube_front {
background-color:#fff;
background-image:url("waseda.jpg");
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
top: 0px;
left: 0px;
color:#000;
}
.cube_front div{
display:none;
margin-top:200px;
margin-left:50px;
text-align:left;
font-size:50px;
text-shadow:4px 4px 5px rgba(0,0,0,0.9);
}
.cube_back {
background-image:url("party.jpg");
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
top: 0px;
left: 0px;
}
.cube_back>div{
margin-top:200px;
font-size:60px;
text-shadow:4px 4px 5px rgba(0,0,0,0.9);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment