TAG
CSS
JavaScript
Result
Run
License
<h5>Click to box.</h5> <div class="box">BOX</div>
.box { width: 100px; height: 50px; border: 1px solid #FF0000; text-align: center; line-height: 50px; transition: 0.3s; }
$(function() { let increment = 0; $(".box").click(function() { $(this).height(function() { increment += 10; return $(this).height() + increment; }); }); });
Console
expand_less
License
License
by DevDic
Close