Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function masonize(the_duration, callback) {
- $('#sort').masonry({
- singleMode: false,
- columnWidth: 175,
- itemSelector: undefined,
- appendedContent: undefined,
- saveOptions: true,
- resizeable: true,
- animate: true,
- animationOptions: {
- easing: 'swing',
- duration: the_duration
- }
- }, function() {
- $(this).css({ margin: '10px' });
- if (callback) {
- $(this).delay(the_duration)
- $(this).queue(function() {
- callback();
- $(this).dequeue();
- });
- }
- });
- }
Add Comment
Please, Sign In to add comment