This commit is contained in:
gallego
2024-01-15 18:47:24 +01:00
parent 6bd14652d7
commit 9574f601f9
3 changed files with 44 additions and 8 deletions

View File

@@ -60,8 +60,44 @@ nav{
}
.button {
width: 9.5em;
height: 2.3em;
margin: 0.5em;
background: rgb(255, 0, 0);
color: rgb(0, 0, 0);
border: none;
border-radius: 1.625em;
font-size: 20px;
font-weight: bold;
cursor: pointer;
position: relative;
z-index: 1;
overflow: hidden;
}
.button:hover {
color: rgb(255, 0, 0);
}
.button:after {
content: "";
background: rgb(0, 0, 0);
position: absolute;
z-index: -1;
left: -20%;
right: -20%;
top: 0;
bottom: 0;
transform: skewX(-45deg) scale(0, 1);
transition: all 0.5s;
}
.button:hover:after {
transform: skewX(-45deg) scale(1, 1);
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
#icone{