Simple Link Animation - Link hovering dengan efek diagonal dan animasi yang menarik
<ul>
<li>
<a>Arlina</a>
</li>
<li>
<a>Design</a>
</li>
<li>
<a>Twisted</a>
</li>
<li>
<a>Shape</a>
</li>
</ul>
ul {
width: 100%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%);
-ms-transform: translate(-50%);
transform: translate(-50%);
text-align: center;
font-size: 2.4rem;
text-transform: uppercase;
}
ul li {
display: inline-block;
margin: 0 3rem;
}
ul a {
position: relative;
cursor: pointer;
}
ul a:hover {
color: crimson;
}
ul a:after {
content: "";
display: block;
height: 100%;
width: 100%;
position: absolute;
z-index: -5;
left: 50%;
bottom: 0;
-webkit-transform: translateX(-50%) skew(-89deg) scaleX(1.5);
-ms-transform: translateX(-50%) skew(-89deg) scaleX(1.5);
transform: translateX(-50%) skew(-89deg) scaleX(1.5);
opacity: 0;
background: #FFF45C;
-webkit-transition: all 0.3s cubic-bezier(0.42, 0.08, 0, 1.8);
transition: all 0.3s cubic-bezier(0.42, 0.08, 0, 1.8);
}
ul a:hover:after {
width: 140%;
-webkit-transform: translateX(-50%) skew(-20deg) scaleX(1);
-ms-transform: translateX(-50%) skew(-20deg) scaleX(1);
transform: translateX(-50%) skew(-20deg) scaleX(1);
opacity: 1;
}