Bounce # of times (jQuery)

by ashleycam3ron

HTML

<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script>
<body>
    <div class="krypton"></div>
</body>

CSS

body {
    background: url('http://bit.ly/UpQgJ6') no-repeat;
}
.krypton {
    height: 100px;
    width: 100px;
    border-radius: 100%;
    background-color: #008800;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#003500), to(#008800));
    background-image: -webkit-linear-gradient(left, #003500, #008800);
    background-image: -moz-linear-gradient(left, #003500, #008800);
    background-image: -ms-linear-gradient(left, #003500, #008800);
    background-image: -o-linear-gradient(left, #003500, #008800);
}

JavaScript

$(document).ready(function () {
    $('.krypton').click(function () {
        $(this).effect('bounce', {
            times: 3
        }, 500);
    });

});