Guest User

Untitled

a guest
Feb 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function masonize(the_duration, callback) {
  2. $('#sort').masonry({
  3. singleMode: false,
  4. columnWidth: 175,
  5. itemSelector: undefined,
  6. appendedContent: undefined,
  7. saveOptions: true,
  8. resizeable: true,
  9. animate: true,
  10. animationOptions: {
  11. easing: 'swing',
  12. duration: the_duration
  13. }
  14. }, function() {
  15. $(this).css({ margin: '10px' });
  16. if (callback) {
  17. $(this).delay(the_duration)
  18. $(this).queue(function() {
  19. callback();
  20. $(this).dequeue();
  21. });
  22. }
  23. });
  24. }
Add Comment
Please, Sign In to add comment