<link href='https://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'>
<span class="render">3D</span>
@import "compass/css3";
@import 'https://fonts.googleapis.com/css?family=Kreon:300,700';
body {
margin: 0;
padding: 0;
background-color: #d0d0d0;
position: absolute;
width: 100%;
height: 100%;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
@include perspective(1000px);
}
.render {
align-self: center;
@include transition(all 0.3s ease);
@include transform3d(rotateX(50deg) rotateZ(1deg));
font-family: 'Kreon', serif;
font-weight: 700;
font-size: 12em;
color: #f5f5f5;
text-shadow:
white 0.006em 0.006em 0.007em,
#9c9c9c 1px 1px 1px,
#9c9c9c 1px 2px 1px,
#9c9c9c 1px 3px 1px,
#9c9c9c 1px 4px 1px,
#9c9c9c 1px 5px 1px,
#9c9c9c 1px 6px 1px,
#9c9c9c 1px 7px 1px,
#9c9c9c 1px 8px 1px,
#9c9c9c 1px 9px 1px,
#9c9c9c 1px 10px 1px,
#9c9c9c 1px 11px 1px,
#9c9c9c 1px 12px 1px,
rgba(16, 16, 16, 0.4) 1px 18px 6px,
rgba(16, 16, 16, 0.2) 1px 22px 10px,
rgba(16, 16, 16, 0.2) 1px 26px 35px,
rgba(16, 16, 16, 0.4) 1px 30px 65px,
white -0.15em -0.1em 100px;
&:hover {
margin-top: -20px;
text-shadow:
white 0.006em 0.006em 0.007em,
#9c9c9c 1px 1px 1px,
#9c9c9c 1px 2px 1px,
#9c9c9c 1px 3px 1px,
#9c9c9c 1px 4px 1px,
#9c9c9c 1px 5px 1px,
#9c9c9c 1px 6px 1px,
#9c9c9c 1px 7px 1px,
#9c9c9c 1px 8px 1px,
#9c9c9c 1px 9px 1px,
#9c9c9c 1px 10px 1px,
#9c9c9c 1px 11px 1px,
#9c9c9c 1px 12px 1px,
rgba(16, 16, 16, 0.4) 1px 38px 26px,
rgba(16, 16, 16, 0.2) 1px 42px 30px,
rgba(16, 16, 16, 0.2) 1px 46px 65px,
rgba(16, 16, 16, 0.4) 1px 50px 95px,
white -0.15em -0.1em 100px;
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.