My code: http://codepen.io/Chiz/pen/jbwPLO (click anywhere in the blank area)
How do I change the number of times the div is bouncing? Say, I want the div to bounce 10 times before it stops, as well as change the speed of the bounce. The JQuery UI surprisingly has not much info (to be blunt: nothing, no sample code, no tutorials) on using easings and special easings in the animate() or slidedown() functions, especially their syntax.
$("div").hide();
$(window).on("click", function() {
$("div").slideToggle(700, "easeOutBounce");
})
div {
width: 300px;
height: 300px;
position: absolute;
bottom: 0;
background-color: gray;
display: none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<div></div>