Yesterday, my code was functioning perfectly. However, after making several revisions to include all animations and styles, I notice that the animated borders no longer connect at three corners. Can someone please assist in identifying what went wrong during these changes?
.desktopNav {
list-style: none;
position: fixed;
display: block;
top: 60px;
margin: 0 auto;
}
.desktopNav li {
display: inline;
position: relative;
margin: 0 1.7em;
}
.desktopNav a {
text-decoration: none;
color: #222323;
font-family: 'Raleway';
font-size: 2em;
font-weight: 200;
padding: 10px 15px;
position: relative;
}
.hoverbox::before,
.hoverbox::after {
content: '';
position: absolute;
transition: transform .5s ease;
}
.hoverbox::before,
.hoverbox::after {
left: 0;
top: 0;
width: 100%;
height: 100%;
border-style: solid;
border-color: #f7941e;
}
.hoverbox::before {
border-width: 2px 0 2px 0;
transform: scaleX(0);
}
.hoverbox::after {
border-width: 0 2px 0 2px;
transform: scaleY(0);
}
.hoverbox:hover::before,
.hoverbox:hover::after {
transform: scale(1, 1);
}
<ul class="menu desktopNav">
<li><a href="#" class="hoverbox">home</a></li>
<li><a href="#" class="hoverbox">about</a></li>
<li><a href="#" class="hoverbox">services</a></li>
</div>
<li><a href="#" class="hoverbox">work</a></li>
<li><a href="#" class="hoverbox">process</a></li>
<li><a href="#" class="hoverbox">contact</a></li>
</div>
</ul>