我想让appendTo以平滑的效果移动..我的意思是将过渡移动效果附加到appendTo ..这是我的代码..
<div class="carousel">
<!--10 Elements-->
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div class="carouselElement"><div>
<div>
Jquery:
//Carousel Script ..
var nextbtnNclicks =1;
var currentarticle = nextbtnNclicks -1;
$(".nextabs i").on("click",function(){
if(nextbtnNclicks>10) {
nextbtnNclicks =1;
}
$(".carouselElement").eq(currentarticle).appendTo(".carousel",200);
nextbtnNclicks++
});