Who has this list topping effect or demo?

  node.js, question

clipboard.png
If you click set top, you will run to the top and the others will move down, but there will be many situations.

  • How to deal with the top-set items?

  • If the user points every element to the top, how to deal with the relationship?

  • Clicking on the bottom element top will cause too many element rearrangements and performance problems.

Hello everyone, I need to replace the animation effect! ! !

Share a problem I have just encountered. Just sort it out and try it out. The style is different from yours but corresponds to yours.jqueryShould be universal, you try to change to your correspondingidOr ..classtryJQuery set topI hope it will help you.