0

Here is a pen: https://codepen.io/DTX/pen/xXaBpJ

$('#sort').click(() => {
  $('.item').sort((a, b) => Math.random() - 0.5)
    .each((i, el) => $(el).parent().append(el));

  $grid.masonry('destroy')
  $grid.masonry()
})

I want to add transition to items like on resizing, when I press Sort button. Can i? enter image description here

DTXqueque
  • 332
  • 2
  • 12

0 Answers0