Ich habe eine einfache Fadein CSS ... Ich möchte es so, wenn Sie den Mauszeiger über Text, der Rand-bottom verblasst. Allerdings, wenn ich schweben, verschwindet der Text kurz und dann verblasst mit die Grenze, so flackert es. Wie bekomme ich es, damit der Text beim Hover konstant bleibt und nur der Rand eingeblendet wird?Flackern auf Fadein Text Hover
Die CSS
.nav li a:hover{
border-bottom: 2px solid #000000;
-webkit-animation: fadein .5s; /* Safari and Chrome */
-moz-animation: fadein .5s; /* Firefox */
-ms-animation: fadein .5s; /* Internet Explorer */
-o-animation: fadein .5s; /* Opera */
animation: fadein .5s;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Firefox */
@-moz-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Safari and Chrome */
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Internet Explorer */
@-ms-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Opera */
@-o-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
Die HTML
<ul class="nav navbar-nav">
<li> <a href="#" role="button" aria-expanded="false">About</a></li>
<li> <a href="#" role="button" aria-expanded="false">Services</a></li>
<li> <a href="#" role="button" aria-expanded="false">Portfolio</a></li>
<li> <a href="#" role="button" aria-expanded="false">Contact</a></li>
</ul>
Sollte dies nicht ein Übergang statt eine Animation sein? Dies scheint ein komplexer Weg zu sein. –