0
버튼을 클릭 할 때 페이지 중앙에 블록을 밀어 넣고 싶습니다. 3 초 후 다시 올려야합니다. 하지만 슬라이딩하지 않고 슬라이딩하지 않고 갑작 스럽습니다.css의 애니메이션이 작동하지 않습니다.
input{display:none}
.ani
{
width:100px;
position:absolute;
height:100px;
background:red;
transition:top 2s;
-moz-transition:top 2s; /* Firefox 4 */
-webkit-transition:top 5s; /* Safari and Chrome */
-o-transition:top 2s; /* Opera */
display:block;
}
.hi:checked+.ani{top:50%;}
<input type="checkbox" id="button" class="hi">
<label class="ani" for="button"></label>
사람이 도와 드릴까요 ...
당신은 초기top
값
.ani
을 줄 필요가