Aşağıdaki kodla, soldan sağa bir vurgu alt çizgi etkisi alıyorum. Vurgulu içeri ve dışarı doğru soldan sağa alt çizgi
sen vurgulu değiliz
.underline {
display: inline;
position: relative;
overflow: hidden;
}
.underline:after {
content: "";
position: absolute;
z-index: -1;
left: 0;
right: 100%;
bottom: -5px;
background: #000;
height: 4px;
transition-property: left right;
transition-duration: 0.3s;
transition-timing-function: ease-out;
}
.underline:hover:after,
.underline:focus:after,
.underline:active:after {
right: 0;
}
<p>hello, link is <a href="#" class="underline">underline</a>
</p>
: İşte bir örnek jQuery komut dosyasında tanımladığınız sınıfta. – Babidi
Buna benzeyen bir şey mi arıyorsunuz - http://stackoverflow.com/questions/28623446/expand-bottom-border-on-hover? – Harry