How to make the transtion for li not glitch out on hover
I know it is because the hover is only for the li, although I'm not really sure what would be the best way to increase the hover area without messing with the background it has
li {
font-size: 17px;
font-weight: bold;
margin-bottom: 10px;
letter-spacing: -1px;
color: white;
opacity: 0.4;
padding: 5px;
background: linear-gradient(to left, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.2) 90%);
border-width: 2px;
border-style: solid;
border-image: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(254, 214, 255, 0) 50%) 1;
border-right: none;
border-left: none;
text-shadow: 1px 1px 2px #746f78;
-webkit-transition: margin 0.3s ease-out;
-moz-transition: margin 0.3s ease-out;
-o-transition: margin 0.3s ease-out;
}
li:hover {
opacity: 1;
background: linear-gradient(to left, rgba(254, 214, 255, 0) 20%, rgba(254, 214, 255, 1) 90%);
border-width: 2px;
border-style: solid;
border-image: linear-gradient(to right, white 0%, rgba(254, 214, 255, 0) 50%) 1;
border-right: none;
border-left: none;
text-shadow: 1px 1px 2px #746f78;
margin: 40px 0 40px 0;
}
- playstation
- playstation 2
- playstation 3
- playstation 4
- switch
- pc
- misc
- visual novels
- ffxiv