Hi All,
I am working on one button animation in asp.net which should be similar to the ZIP ATTACHED. Can anyone help me on this. And the button I use now doesn't have a rounded corner and simple animation. I have a javascript which is working fine in html but not in asp.net
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var backgroundColor = "gray";
function animateButton() {
$("#Button1").animate({ width: 155 },
1000,
function () {
$(this).css("background-color", backgroundColor);
backgroundColor == "gray" ? backgroundColor = "red" : backgroundColor = "gray";
setTimeout(animateButton, 3000);
}
);
}
setTimeout(animateButton, 3000);
});
</script>