2
I’m facing a very specific problem in a project. I am creating slide, where I need to sort the list according to what is clicked in the pagination. It should look like this:
Following form:
Quando clico na paginação no item 3, a lista deve ficar da seguinte forma:
Lista original: Lista MO
0 2
1 *3*
2 4
3 0
4 1
----------
Quando clico na paginação no item 2, a lista deve ficar da seguinte forma:
Lista original: Lista MO
0 1
1 *2*
2 3
3 4
4 0
----------
Quando clico na paginação no item 0, a lista deve ficar da seguinte forma:
Lista original: Lista MO
0 4
1 *0*
2 1
3 2
4 3
Only the list item at position 1 will always be visible. As shown in the image below:
Anyone who can help, follow the jsfiddle, with a basis for testing, either it can be done in pure JS or jQuery.
Welcome to stackoverflow in English! I think you have the wrong image.
– Jorge B.
I think you’re right. He’s trying to make a slide :)
– Wallace Maxters