Guest User

Untitled

a guest
Dec 11th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. var classes = [ 'grid-item', 'grid-item--height2', 'grid-item--height3' ];
  2. $('.grid-item').each(function() {
  3. $(this).addClass(classes[~~(Math.random()*classes.length)]);
  4. });
Add Comment
Please, Sign In to add comment