Vignesh Kumar

Vignesh Kumar

  • NA
  • 1k
  • 416.4k

border radius for css 2.1

Jul 3 2013 6:20 AM
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>


Attachment: button.zip

Answers (19)