Web işleri falan filan
Uzman Üye
Merhaba arkadaşlar. Buton efektim şu şekilde:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="col-md portfolio-item">
<button class ="btn">Dk.Felix</button>
<button class ="btn">Dk.Felix</button>
</div> <div class="col-md portfolio-item2">
<button class ="btn2">Dk.Felix</button>
<button class ="btn2">Dk.Felix</button>
</div>
</body>
</html>
CSS:
*{
margin: 0;
padding: 0;
font-family: "montserrat", sans-serif;
}
body{
background: #11403F;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap-reverse;
}
.portfolio-item {
display: flex;
flex-wrap: wrap-reverse;
width:430px;
margin: 20px;
padding: 20px;
}
.btn {
display: inline-block; float: left;
width: 200px;
height: 60px;
background: none;
border: 4px solid;
color: #248C8B;
font-weight: 700;
text-transform: uppercase;
cursor: pointer;
font-size: 16px;
position: relative;
margin: 15px 7px; 0px 8px;
padding: 10;
}
.btn::before{
content: "";
position: absolute;
width: 14px;
height: 4px;
background: #11403F;
transform: skewx(50deg);
transition: .4s linear; !important;
}
.btn::after{
content: "";
position: absolute;
width: 14px;
height: 4px;
background: #11403F;
transform: skewx(50deg);
transition: .4s linear;
}
.btn::before{
top: -4px;
left: 10%;
}
.btn::after {
bottom: -4px;
right: 10%;
}
.btn:hover::before{
left:80%;
}
.btn:hover::after{
right:80%;
}.btn2 {
display: inline-block; float: left;
width: 200px;
height: 60px;
background: none;
border: 4px solid;
color: #E74C3C;
font-weight: 700;
text-transform: uppercase;
cursor: pointer;
font-size: 16px;
position: relative;
margin: 15px 7px; 0px 8px;
padding: 10;
}
.btn2::before{
content: "";
position: absolute;
width: 14px;
height: 4px;
background: #11403F;
transform: skewx(50deg);
transition: .4s linear; !important;
}
.btn2::after{
content: "";
position: absolute;
width: 14px;
height: 4px;
background: #11403F;
transform: skewx(50deg);
transition: .4s linear;
}
.btn2::before{
top: -4px;
left: 10%;
}
.btn2::after {
bottom: -4px;
right: 10%;
}
.btn2:hover::before{
left:80%;
}
.btn2:hover::after{
right:80%;
}