Demo "Flash Light" Text. Kode Css3:#Tubuh {
background: hsl(210, 30%, 0%) radial-gradient( hsl(210, 30%, 20%), hsl(210, 30%, 0%));
margin: 0;
width: 100%;
height: 100%;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
p {margin: 0;}
#box {
padding: 100px;
text-align: center;
min-width: 500px;
font-size: 3em;
font-weight: bold;
-webkit-backface-visibility: hidden;
}
#flashlight {
color: hsla(0,0%,0%,0);
perspective: 80px;
outline: none;
}
#flash {
display: inline-block;
text-shadow: #bbb 0 0 1px, #fff 0 -1px 2px, #fff 0 -3px 2px, rgba(0,0,0,0.8) 0 30px 25px;
transition: margin-left 0.3s cubic-bezier(0, 1, 0, 1);
font-family: Geneva, sans-serif;
}
#box:hover #flash {
margin-left: 20px;
transition: margin-left 1s cubic-bezier(0, 0.75, 0, 1);
}
#light {
display: inline-block;
text-shadow: #111 0 0 1px, rgba(255,255,255,0.1) 0 1px 3px;
font-family: Geneva, sans-serif;
}
#box:hover #light {
text-shadow: #fff 0 0 4px, #fcffbb 0 0 20px;
transform: rotateY(-60deg);
transition:transform 0.3s cubic-bezier(0, 0.75, 0, 1), text-shadow 0.1s ease-out;
}
Kode Html:<div id="Tubuh">
<div id="box">
<div id="flashlight">
<span id="flash">FLASH</span>
<span id="light">LIGHT</span>
</div>
</div>
</div>
Tutorial Lengkap-nya di :
http://codepen.io/simurai/pen/vwprf
Title :
Membuat "FLASH LIGHT" Text.
Description : Demo " Flash Light " Text. FLASH LIGHT Kode Css3: # Tubuh { background : hsl(210, 30%, 0%) radial-gradient( hsl(210, 30%,...
Rating :
4.0 stars based on 100 reviews