Do CSS3 Transitions Not Work With Text-Decoration?

ronaldroe

Super Moderator
Staff member
So, I'm working on a design, and I was trying to apply a transition that would make the underline on the text links fade in and out, like I have done with a number of other properties. Here's the code I've written, maybe I just did something wrong?

Code:
#nav ul li a{
	color:#3d240c;
	text-decoration: none;
	transition: text-decoration 3s ease-in;
	-webkit-transition: text-decoration 3s ease-in;
	-o-transition-: text-decoration 3s ease-in;
	-moz-transition-: text-decoration 3s ease-in;
}
#nav ul li a:hover{
	text-decoration: underline;
}

Code:
<div id="nav">
	<ul>
		<li><a href="#">About</a></li>&nbsp;
		<li><a href="#">Portfolio</a></li>&nbsp;
		<li><a href="#">Commissions</a></li>&nbsp;
		<li><a href="#">Shop</a></li>&nbsp;
		<li><a href="#">Blog</a></li>&nbsp;
		<li><a href="#">Contact</a></li>&nbsp;
	</ul>
</div>
 
Last edited:
Top