Shuffle with Ajax Content
This demo builds off the adding and removing demo to append new items after fetching them from an API and follows the same pattern:
- Insert the elements into the shuffle container element (in this case,
#grid) however you like. You could use
jQuery.append, or any other method of inserting new content.
- Make an array of the newly added items.
add(newItemsArray)on your shuffle instance.
The data comes from https://reqres.in.