fwntly
New Coder
I'm experiencing a shaking effect when hovering over buttons-links on my website. When I hover over the buttons, they shake instead of smoothly transitioning. Here's the CSS code
the same happens when hovering the mouse over the logo, which is a link to the main page of the site:
CSS:
header .buttons{
margin: 7px 20px;
transition: 0.5s;
}
header .buttons:hover{
transform: scale(1.1);
}
header .buttons a{
color: #ffffff;
text-decoration: none;
font-size: 32px;
position: relative;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.05em;
background-color: #5e8c87;
transition: 0.5s;
padding: 7px 7px;
border-style: solid;
border-color: whitesmoke;
}
header .buttons a:hover {
letter-spacing: 0.15em;
background: var(--clr);
border-color: var(--clr);
box-shadow: 0 0 35px var(--clr);
}
the same happens when hovering the mouse over the logo, which is a link to the main page of the site:
CSS:
header .logo a{
background-image: url("logo.png");
background-size: 180px;
background-repeat: no-repeat;
position: relative;
width:180px;
height: 180px;
display: inline-block;
text-indent: -9999999px;
border-radius: 50%;
transition: 0.3s;
}
header .logo a:hover {
transform: scale(1.05);
letter-spacing: 0.15em;
box-shadow: 0 0 15px var(--clr);
}