TAG
CSS
JavaScript
Result
Run
License
<button type="button" id="clickme">클릭</button> <div id="target"></div>
div { width: 100px; height: 100px; background: red; }
$(function() { $("#clickme").click(function() { $("#target").animate({ width: "toggle", height: "toggle" }, { duration: 5000, specialEasing: { width: "linear", height: "swing" }, queue : true, step : function() { console.log($(this).width()); }, complete: function() { $(this).after("
Complete
"); } }); }); });
Console
expand_less
License
License
by DevDic
Close