无缝轮播实现(Seamless rotation implementation)

两种实现思想:

  • 每次轮播元素动画执行到末尾的时候迅速让其位置恢复原位,造成视觉上的无缝轮播
  • 将轮播元素复制一份,第一个item元素轮播执行完后将其删除后添加在整个轮播列表的最后,造成循环轮播
————————

Two realization ideas:

  • Each time the rotation element animation is executed to the end, its position is quickly restored to its original position, resulting in seamless rotation visually
  • Make a copy of the rotation element. After the rotation of the first item element is completed, delete it and add it to the end of the whole rotation list, resulting in circular rotation