<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<div id="type1">
<h3>Created By <a href="https://codepen.io/codery">Yasin Softaoğlu</a></h3>
<h1>TYPE 1</h1>
<div class="btn-1">
BUTTON
</div>
<div class="btn-2">
BUTTON
</div>
<div class="btn-3">
BUTTON
</div>
<div class="btn-4">
BUTTON
</div>
</div>
<div id="type2">
<h1>TYPE 2</h1>
<div class="btn-5">
BUTTON
</div>
<div class="btn-6">
BUTTON
</div>
<div class="btn-7">
BUTTON
</div>
<div class="btn-8">
BUTTON
</div>
</div>
<div id="type4">
<h1>TYPE 3</h1>
<div class="btn-12">
BUTTON
</div>
<div class="btn-13">
BUTTON
</div>
<div class="btn-14">
BUTTON
</div>
<div class="btn-15">
BUTTON
</div>
</div>
<div id="type3">
<h1>TYPE 4</h1>
<div class="btn-9">
CLICK
</div>
<div class="btn-10">
CLICK
</div>
<div class="btn-11">
CLICK
</div>
</div>
* {
padding:0;
margin: 0;
}
body {
text-align: center;
font-family: "Roboto";
color: #fff;
letter-spacing:1px;
}
#type1 {
background-color:#42a5f5;
padding-bottom: 50px;
}
#type2 {
background: #66bb6a;
padding-bottom: 50px;
}
#type3 {
background: #ffa726;
padding-bottom: 60px;
position: relative;
}
#type4 {
background: #78909c;
padding-bottom: 50px;
}
h1 {
font-size: 50px;
padding: 30px 0;
}
h3 {
padding:30px 0 0 0;
}
h3 a {
margin-left:5px;
text-decoration: none;
color: #fff;
font-weight: light;
border-bottom: 1px dotted;
padding: 0 2px 3px 2px;
}
h3 a:hover {
border-bottom:1px solid;
}
.btn-1 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-1:before {
content: "";
position: absolute;
height: 150px;
width: 50px;
background : #fff;
left: -55px;
top: -40px;
transform: rotate(37deg);
transition: all .3s;
opacity: 0.3;
}
.btn-1:hover:before {
left:95%;
}
/* Buton 1 bitti */
.btn-2 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-2:before {
content: "";
position: absolute;
height: 11px;
width: 100%;
background : #fff;
left: 0;
top: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-2:hover:before {
top: 77%;
}
/* Buton 2 Bitti */
.btn-3 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-3:before {
content: "";
position: absolute;
height: 11px;
width: 100%;
background : #fff;
left: 0;
bottom: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-3:hover:before {
bottom: 80%;
}
/* Buton 3 Bitti */
.btn-4 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-4:before {
content: "";
position: absolute;
height: 150px;
width: 50px;
background : #fff;
right: -40px;
top: -40px;
transform: rotate(37deg);
transition: all .3s;
opacity: 0.3;
}
.btn-4:hover:before {
right: 105%;
}
/* Buton 4 Bitti */
.btn-5 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-5:before {
content: "";
position: absolute;
height: 100%;
width: 0;
background : #fff;
left: 0;
bottom: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-5:hover:before {
width: 100%;
}
/* Buton 5 Bitti */
.btn-6 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-6:before {
content: "";
position: absolute;
height: 100%;
width: 0;
background : #fff;
left: 100%;
bottom: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-6:hover:before {
width: 100%;
left:0;
}
/* Buton 6 Bitti */
.btn-7 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-7:before {
content: "";
position: absolute;
height: 0;
width: 100%;
background : #fff;
left: 0;
top: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-7:hover:before {
height: 100%;
}
/* Buton 7 Bitti */
.btn-8 {
text-align: center;
display: inline-block;
padding: 15px 40px;
border: 1px solid #fff;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-8:before {
content: "";
position: absolute;
height: 0;
width: 100%;
background : #fff;
left: 0;
bottom: 0;
transition: all .3s;
opacity: 0.3;
}
.btn-8:hover:before {
height: 100%;
}
/* Buton 8 Bitti */
.btn-9 {
background: #51A3B8;
font-size: 20px;
color: white;
border-radius: 7px;
box-shadow: 0 7px 0px #387796;
display: inline-block;
transition: all .2s;
position: relative;
padding: 20px 25px;
position: relative;
top: 0;
cursor: pointer;
margin:0 20px;
}
.btn-9:active {
top: 3px;
box-shadow: 0 2px 0px #387796;
transition: all .2s;
}
/* Buton 9 Bitti */
.btn-10 {
background: #8d6e63;
font-size: 20px;
color: white;
border-radius: 7px;
box-shadow: 0 7px 0px #6d4c41;
display: inline-block;
transition: all .2s;
position: relative;
padding: 20px 25px;
position: relative;
top: 0;
cursor: pointer;
margin:0 20px;
}
.btn-10:active {
top: 3px;
box-shadow: 0 2px 0px #6d4c41;
transition: all .2s;
}
/* Buton 10 Bitti */
.btn-11 {
background: #7986cb;
font-size: 20px;
color: white;
border-radius: 7px;
box-shadow: 0 7px 0px #3f51b5;
display: inline-block;
transition: all .2s;
position: relative;
padding: 20px 25px;
position: relative;
top: 0;
cursor: pointer;
margin:0 20px;
}
.btn-11:active {
top: 3px;
box-shadow: 0 2px 0px #3f51b5;
transition: all .2s;
}
/* Buton 11 Bitti */
.btn-12 {
text-align: center;
display: inline-block;
padding: 15px 40px;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-12:before {
content: "";
position: absolute;
width: 0;
background : #fff;
left: 45%;
height: 2px;
bottom: 0;
transition: all .3s;
opacity: 0.7;
}
.btn-12:hover:before {
width: 100%;
left:0;
}
/* Button 12 Bitti */
.btn-13 {
text-align: center;
display: inline-block;
padding: 15px 40px;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
}
.btn-13:before {
content: "";
position: absolute;
width: 0;
background : #fff;
left: 45%;
height: 2px;
top: 0;
transition: all .3s;
opacity: 0.7;
}
.btn-13:hover:before {
width: 100%;
left:0;
}
/* Buton 13 Bitti */
.btn-14 {
text-align: center;
display: inline-block;
padding: 15px 40px;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
border-bottom: 2px solid #fff;
}
.btn-14:before {
content: "";
position: absolute;
width: 0;
background : #fff;
left: 45%;
height: 2px;
top: 0;
transition: all .3s;
opacity: 0.7;
}
.btn-14:hover:before {
width: 100%;
left:0;
}
/* Buton 14 Bitti */
.btn-15 {
text-align: center;
display: inline-block;
padding: 15px 40px;
cursor: pointer;
letter-spacing: 2px;
position:relative;
overflow:hidden;
margin: 0 20px;
border-top: 2px solid #fff;
}
.btn-15:before {
content: "";
position: absolute;
width: 0;
background : #fff;
left: 45%;
height: 2px;
bottom: 0;
transition: all .3s;
opacity: 0.7;
}
.btn-15:hover:before {
width: 100%;
left:0;
}
/* Created By Yasin Softaoğlu */
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.