Botones
Once botones con efectos hover, hechos solo con HTML y CSS.
Pantalla completa — se abre en una pestaña nueva
Código
HTML
<section><div class="buttons-container">
<div class="row justify-content-center">
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-1" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-2" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-3" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-4" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-5" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-6">button<span></span></a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-7" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-8" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-9" href="#">button <div class="wave"></div></a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-10" href="#">button</a>
</div>
<div class="single-button-wraper col-4 pb-5">
<a class="btn-hover-11" href="#">button <div class="wave"></div></a>
</div>
</div>
</div></section>
CSS
section{
background-color: #e2e2e2;
position: relative;
z-index:1;
}
.buttons-container{
max-width: 90%;
margin: 0 auto;
padding: 50px 0;
}
.buttons-container .single-button-wraper {
display: flex;
align-items: center;
justify-content: center;
}
/* btn 1 */
a.btn-hover-1 {
text-transform: uppercase;
text-decoration: none;
font-weight: 700;
position: relative;
letter-spacing: 7px;
padding: 18px 30px;
background: transparent;
font-size: 28px;
color: white;
}
a.btn-hover-1:before {
content: "";
position: absolute;
height: 100%;
width: 50%;
left: -1%;
top: -5px;
background-color: #ee5253;
transform: skewX(30deg);
z-index: -1;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
a.btn-hover-1:hover:before {
transform: skewX(0deg);
left: 50%;
top: 0;
}
a.btn-hover-1:after {
content: "";
position: absolute;
height: 100%;
width: 50%;
left: 51%;
top: 5px;
background-color: #0a3d62;
transform: skewX(30deg);
z-index: -1;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
a.btn-hover-1:hover:after {
transform: skewX(0deg);
left: 0%;
top: 0;
}
/* btn 2 */
a.btn-hover-2 {
text-decoration: none;
text-transform: uppercase;
font-size: 22px;
font-family: verdana;
letter-spacing: 3px;
height: 60px;
width: 200px;
line-height: 60px;
text-align: center;
color: #FDC518;
position: relative;
}
a.btn-hover-2:before {
content: "";
position: absolute;
height: 90px;
width: 200px;
top: -15px;
left: 0;
border-left: 2px solid red;
border-right: 2px solid #FDC518;
transition: all 01s;
}
a.btn-hover-2:after {
content: "";
position: absolute;
height: 60px;
width: 230px;
top: 0;
left: -15px;
border-top: 2px solid red;
border-bottom: 2px solid #FDC518;
transition: all 1s;
}
a.btn-hover-2:hover:before {
transform: rotateY(180deg);
}
a.btn-hover-2:hover:after {
transform: rotateX(180deg);
}
/* btn 3*/
a.btn-hover-3 {
background-color: transparent;
border: none;
position: relative;
width: 400px;
height: 120px;
text-transform: uppercase;
line-height: 120px;
text-align: center;
color: #fff;
font-size: 45px;
letter-spacing: 15px;
overflow: hidden;text-decoration: none;
}
a.btn-hover-3:before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 4px;
background-color: #fff;
transition: all 0.5s;
}
a.btn-hover-3:hover:before {
left: 0;
}
a.btn-hover-3:after {
content: "";
position: absolute;
bottom: 0;
right: -100%;
width: 100%;
height: 4px;
background-color: #fff;
transition: all 0.5s;
}
a.btn-hover-3:hover:after {
right: 0;
}
a.btn-hover-3 span:before {
content: "";
position: absolute;
top: -100%;
right: 0;
width: 4px;
height: 100%;
background-color: #fff;
transition: all 0.5s;
}
a.btn-hover-3:hover span:before {
top: 0;
}
a.btn-hover-3 span:after {
content: "";
position: absolute;
bottom: -100%;
left: 0;
width: 4px;
height: 100%;
background-color: #fff;
transition: all 0.5s;
}
a.btn-hover-3:hover span:after {
bottom: 0;
}
/* btn 4 */
a.btn-hover-4 {
text-decoration: none;
padding: 40px 80px;
color: #E1332D;
border: 3px solid #E1332D;
text-transform: uppercase;
font-size: 40px;
font-family: 'roboto';
font-weight: 300;
letter-spacing: -2px;
transition: all 0.5s
}
a.btn-hover-4:hover {
font-weight: 900;
letter-spacing: 10px;
border: 7px solid #E1332D;
}
/* btn 5 */
a.btn-hover-5 {
text-decoration: none;
color: white;
font-family: sans-serif;
font-size: 40px;
border: 3px solid white;
padding: 40px 80px;
position: relative;
transition: all 1s;
overflow: hidden;
}
a.btn-hover-5:before {
content: 'YEAH!';
color: white;
background-color: #F44336;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
transform: translateY(-100%);
transition:all .5s;
}
a.btn-hover-5:hover:before {
transform: translateY(0);
}
/* btn 6 */
a.btn-hover-6 {
text-decoration: none;
color: white;
font-family: sans-serif;
font-size: 40px;
border: 3px solid white;
padding: 40px 80px;
transition: all 0.3s;
position: relative;
overflow: hidden;
}
a.btn-hover-6:hover {
background-color: #F44336;
}
a.btn-hover-6:before {
content: '';
background-color: white;
top: 0;
left: 0;
width: 100%;
height: 50px;
position: absolute;
transform: translateX(-100%) rotate(45deg);
transition: all 0.3s;
}
a.btn-hover-6:hover:before {
transform: translateX(100%) rotate(45deg);
}
/* btn 7 */
a.btn-hover-7 {
position: absolute;
text-decoration: none;
text-transform: uppercase;
padding: 25px 50px;
background-color: white;
color: #777;
border-radius: 100px;
font-size: 24px;
transition: all 0.2s;
}
a.btn-hover-7:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
border-radius: 100px;
transition: all 0.4s;
z-index: -1;
}
a.btn-hover-7:hover:before {
transform: scaleX(1.4) scaleY(1.6);
opacity: 0;
}
a.btn-hover-7:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
a.btn-hover-7:active {
transform: translateY(-1px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
/* btn 8 */
a.btn-hover-8 {
text-decoration: none;
color: white;
font-family: sans-serif;
font-size: 40px;
border: 3px solid white;
padding: 40px 80px;
transition: all 0.3s
}
a.btn-hover-8:hover {
border: 3px solid #F44336;
color: #F44336;
animation: shake 0.3s linear 1;
}
@keyframes shake {
33% { transform: rotate(10deg); }
66% { transform: rotate(-10deg); }
100% { transform: rotate(10deg); }
}
/* btn 9 */
a.btn-hover-9 {
text-decoration: none;
padding: 50px 70px;
color: #00aeff;
font-size: 18px;
letter-spacing: 3px;
border: 2px solid #00aeff;
text-transform: uppercase;
position: relative;
overflow: hidden;
transition: all 0.5s;
}
a.btn-hover-9:hover {
color: white;
}
a.btn-hover-9 .wave {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: calc(100% + 22px);
background-color: #00aeff;
transition: all 1s;
z-index: -1;
}
a.btn-hover-9:hover .wave {
top: 0;
}
a.btn-hover-9 .wave:before {
content: "";
position: absolute;
top: -22px;
left: 0;
width: 100%;
height: 22px;
background: url(/wp-content/themes/jme/assets/img/lab/ola.svg);
animation: wavy 0.5s linear infinite;
}
@keyframes wavy {
0% { background-position-x: 0 }
100% { background-position-x: 118px; }
}
/* btn 10 */
a.btn-hover-10 {
width: 300px;
height: 60px;
text-decoration: none;
text-transform: uppercase;
background-color: transparent;
text-align: center;
line-height: 60px;
font-weight: bold;
letter-spacing: 2px;
position: relative;
transition: all 0.2s;
color: white;
}
a.btn-hover-10:before {
content: "";
position: absolute;
top: -3px;
left: -3px;
width: 100%;
height: 100%;
background-color: #20caff;
z-index: -1;
mix-blend-mode: multiply;
transition: all 0.2s;
transform-origin: top;
}
a.btn-hover-10:hover:before {
top: -6px;
left: 0;
transform: perspective(1000px) rotateX(75deg);
}
a.btn-hover-10:after {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 100%;
height: 100%;
background-color: #ff7675;
z-index: -1;
mix-blend-mode: multiply;
transition: all 0.2s;
transform-origin: bottom;
}
a.btn-hover-10:hover:after {
top: 6px;
left: 0;
transform: perspective(1000px) rotateX(-75deg);
}
a.btn-hover-10:hover {
color: #272727;
}
/* btn 11 */
a.btn-hover-11 {
text-decoration: none;
color: white;
font-family: sans-serif;
font-size: 40px;
border: 3px solid white;
padding: 40px 80px;
position: relative;
overflow: hidden;
}
a.btn-hover-11:before {
content: '';
background-color: #F44336;
top: 0;
left: 0;
width: 120px;
height: 100%;
position: absolute;
z-index: -1;
transform: skew(-15deg);
animation: moving 1.2s linear infinite;
transition: all .5s;
}
@keyframes moving {
from { left: -120px }
to { left: 100% }
}
a.btn-hover-11:hover:before {
width: 100%;
transform: skew(0deg);
animation: none;
}
/* --- Mobile (2026-10-08) --- */
/* Bootstrap's col-4 keeps three columns at every width, and several
buttons are 300-400px wide on their own: below a laptop the buttons
stack one per row, and on a phone they shrink to fit. */
@media (max-width: 991.98px) {
.buttons-container .single-button-wraper {
width: 100%;
min-height: 160px;
}
}
@media (max-width: 575.98px) {
.buttons-container {
max-width: 100%;
padding: 40px 16px;
}
a.btn-hover-1 { font-size: 22px; letter-spacing: 5px; }
a.btn-hover-3 {
width: 100%;
max-width: 300px;
height: 90px;
line-height: 90px;
font-size: 32px;
letter-spacing: 8px;
}
a.btn-hover-4,
a.btn-hover-5,
a.btn-hover-6,
a.btn-hover-8,
a.btn-hover-11 {
padding: 24px 44px;
font-size: 28px;
}
a.btn-hover-4:hover { letter-spacing: 6px; }
a.btn-hover-9 { padding: 36px 52px; }
}