We have a link:
<a href="#">
Some text
<span style="width: 50px; height: 50px; background: url(image.png); overflow: hidden; opacity: 0;"></span>
</a>
And we want to change opacity of <span>
with some animation, when the link is hovered.
How would we do it?
Use .fadeTo():
Demo: see fiddle
Like this:
Another possible solution:
If you use fadeOut(), the span will collapse, this way it won't
EDIT
This is much better: