Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
html
body
  .masonry-layout
    - var n = 0
    - var colors = ["red", "green", "purple", "orange"]
    while n < 5
      - var type = Math.floor(Math.random() * 4 + 1)
      .masonry-layout__panel
        .masonry-layout__panel-content(class="bg--#{colors[type - 1]}")
          - var l = 0
          while l < type
            p.
              Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec maximus tincidunt mauris non hendrerit. Morbi fringilla vehicula lectus vitae molestie. Vestibulum lectus odio, varius nec egestas et, cursus nec nunc.
            - l++
      - n++
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers