jquery animate vanilla js code example
Example 1: animate in jquery
$("button").click(function(){
$("#box").animate({height: "300px"});
});
Example 2: animate jquery
(selector).animate({styles},{options})
$("button").click(function(){
$("#box").animate({height: "300px"});
});
(selector).animate({styles},{options})