Can anyone provide guidance on how to write jQuery code that will reveal a hidden button after an animation is finished? The button should also be able to refresh the animation for the user to watch again.
Check out this fiddle: http://jsfiddle.net/rabelais/ZeMcP/
HTML
<div class="bar1"><div class="alt0"></div></div>
<div id="button"><a href="#">refresh</a></div>
CSS
.bar1 {
width: 200px;
height: 20px;
background-color: black;
}
.alt0 {
width: 0px;
height: 20px;
background-color: orange;
}
#button {
display: none;
}
jQuery
$('.bar1').mouseenter(function(){
$('.alt0').animate({width: "200px"}, 1000)
});