I have been animating an ice cream. When I do this, the semi-circle originally comes in from top to bottom. Is there any way to make it come in from bottom to top?
setInterval(function() {
"use strict";
$(document).ready(function() {
$("#ice_cream").animate({
height: "50px"
}, 1000, "swing").delay(2000);
$("#ice_cream").animate({
backgroundColor: "chocolate"
}, 1000);
$("#ice_cream").animate({
left: "105px",
top: "50px"
}, 500, "swing");
$("#ice_cream").animate({
left: "210px",
top: "190px"
}, 500, "swing").delay(2000);
$("#ice_cream").animate({
backgroundColor: "pink"
}, 1000);
$("#ice_cream").animate({
left: "315px",
top: "50px"
}, 500, "swing");
$("#ice_cream").animate({
left: "420px",
top: "100px"
}, 500, "swing").delay(2000);
$("#ice_cream").animate({
backgroundColor: "white"
}, 1000);
$("#ice_cream").animate({
height: "0px"
}, 1000, "swing").delay(2000);
$("#ice_cream").animate({
left: "9px"
}, 1000);
});
});
html {
background-color: black;
}
#ice_cream {
width: 100px;
height: 0px;
position: absolute;
border-top-right-radius: 100px;
border-top-left-radius: 100px;
background-color: white;
top: 100px;
}
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<div id="waffle"></div>
<div id="ice_cream"></div>