/* Hover Animations */
/* Underline hover animation */
ul li a::after {
content: "";
position: absolute;
bottom: 8px;
height: 1px;
width: 70%;
left: 15%;
background-color: rgb(255, 255, 255);
transition: .3s;
transition-timing-function: ease-in-out;
transform: scaleX(0);
}
ul li a:hover::after {
transform: scaleX(1);
}
ul li a:hover {
color: rgb(255, 255, 255);
letter-spacing: 1.5px;
cursor: pointer;
}
ul li a span{
position: absolute;
display: block;
background: rgb(255, 255, 255);
}
/* Around the border hover animation */
ul li a span:nth-child(1) {
left: 0;
top: 0;
width: 100%;
height: 2px;
transform-origin: left;
transform: scaleX(0);
transition: 0.15s;
}
ul li a:hover span:nth-child(1) {
transition: 0.15s;
transform: scaleX(1);
}
ul li a span:nth-child(2) {
right: 0;
top: 0;
width: 2px;
height: 100%;
transform-origin: top;
transform: scaleY(0);
transition: 0.15s;
}
ul li a:hover span:nth-child(2) {
transition: 0.15s;
transform: scaleY(1);
transition-delay: 0.1s;
}
ul li a span:nth-child(3) {
right: 0;
bottom: 0;
width: 100%;
height: 2px;
transform-origin: right;
transform: scaleX(0);
transition: 0.15s;
}
ul li a:hover span:nth-child(3) {
transition: 0.15s;
transform: scaleX(1);
transition-delay: 0.2s;
}
ul li a span:nth-child(4) {
left: 0;
bottom: 0;
width: 2px;
height: 100%;
transform-origin: bottom;
transform: scaleY(0);
transition: 0.15s;
}
ul li a:hover span:nth-child(4) {
transition: 0.15s;
transform: scaleY(1);
transition-delay: 0.3s;
}