A Pen by Deepak Kamat

Thumbnail
This awesome code was written by depy, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright depy ©
  • HTML
  • CSS
  • JavaScript
    - var i = 0;
div(class='container')
   while  i < 20
      div(class='image' style='background-image: url(https://source.unsplash.com/random/120x120?a='+ i +');' )
      -i++

/*Downloaded from https://www.codeseek.co/depy/a-pen-by-deepak-kamat-BVjKVN */
    .container {
  position: relative;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.image {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  margin: 20px;
}




/*Downloaded from https://www.codeseek.co/depy/a-pen-by-deepak-kamat-BVjKVN */
    



Comments