답변 4개
채택된 답변
+20 포인트
Copy
$(document).ready(function() {
var time=500; //원하는 시간
$("#bg_color").animate({height:$("#box").height()},{duration:time});
});
#box{ position:relative; width:300px; height:80px; background:#FFFFFF; overflow:hidden;}
#bg_color{ position:absolute; bottom:0px; background:#FF0004; width:100%; height:20px;}
<div id="box">
<div id="bg_color"></div>
</div>
이러면 되지 않을까요..
답변을 작성하려면 로그인이 필요합니다.