애니메이션 이동 효과를 위쪽 및 아래쪽 정렬 이동에 추가하는 방법.jquery insertafter 및 insertbefore에 슬라이딩 애니메이션 추가
위쪽 및 아래쪽 텍스트 링크를 클릭하여 이동을 확인할 수 있습니다.
여기에 애니메이션을 생성하려면 코드
$(document).ready(function(){
$('.move-up').click(function(){
if ($(this).prev())
$(this).parent().insertBefore($(this).parent().prev());
});
$('.move-down').click(function(){
if ($(this).next())
$(this).parent().insertAfter($(this).parent().next());
});
});
(position) : relative;에 대한 1 : – JoeBrockhaus