Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="parallax-hero-wrapper" class="masonry-hero-wrapper relative">
  <div id="parallax-hero" class="masonry perrow-6">
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="0f988de3-315b-4415-b309-32ca555d979e" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar_1024x.jpg?v=1626085446">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="f716b480-1882-43a3-8c41-70bb8b74ad6d" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-01_5f632b79-3fe3-4b7d-b786-d3af0ccf2b98_1024x.jpg?v=1628147623">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="c5fea331-1431-44b2-9666-22f26dca7052" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-03_1024x.jpg?v=1626087217">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="c8bc9496-13db-44d1-bf0c-a4a8f6f543d8" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-2_1339417d-c15d-43a2-86b5-ea88f3a6a2b5_1024x.jpg?v=1628147653">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="42fc6298-659e-499b-b015-852b998714b3" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-32_9e25466f-09b1-4500-99a1-62b1f71432ba_1024x.jpg?v=1627296885">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="2fd9f3b5-b6de-4648-91ae-f1b233f9991a" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-06_1024x.jpg?v=1626087283">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="2a9f72f7-74a1-4035-af4c-4a8128b24860" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-07_ef6aa58a-764e-4dc1-89ee-8bb3561eae39_1024x.jpg?v=1628148022">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="dee9ea52-88a7-4e75-9d5c-305b90d57f16" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-08_3259dcba-d4a8-4665-93ff-5d9ead00ba81_1024x.jpg?v=1627296982">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="3d352ece-5c66-4f69-b7aa-689815f988d6" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-09_7f331d5f-9305-4245-bada-4a3837b479a6_1024x.jpg?v=1628147703">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="7e0f5195-06fe-4074-825a-96615d0da0d8" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-10_14afbb8a-04bc-44d8-9aaa-0d9a22e22532_1024x.jpg?v=1626088640">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="3bbcc7c6-b056-4296-900f-a8f9dd23540b" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-19_1024x.jpg?v=1628147769">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="5394ae0e-40a6-40ff-929b-b4ce0202b6c2" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-15_24a0eb98-7067-4eff-94de-2ac6a5a2335e_1024x.jpg?v=1628147786">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="95e775f0-cb7d-4b3f-b730-6d2cc2600821" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-25_825de8cc-963e-4544-89d2-2be0dca0d4b3_1024x.jpg?v=1628147897">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="edceabf2-8dee-475c-901f-1967e638ea63" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-17_cc9bea8d-43c6-4f6c-baa2-0724b130fc2a_1024x.jpg?v=1628078519">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="d221fce1-1a94-474d-92f6-34ee2d325fc7" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-18_be8a6ff9-6149-44b4-893f-a7946ebc6e59_1024x.jpg?v=1628147819">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="b162a054-dbe5-4d29-8711-ceb6036b981e" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-16_f16d4d27-59f7-4ff2-a813-83420abb2c9e_1024x.jpg?v=1628147846">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="02b0d5a5-b82a-4639-82ce-ec7550fd9bc7" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-20_1024x.jpg?v=1626089077">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="bcde3668-3287-4ae7-b29a-6b900578cce2" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Website-63_5866e8f0-cf38-4d17-9951-6fab3a9f441f_1024x.jpg?v=1620809583">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="d7eb80a4-1b93-4041-a17b-f8ff018f60ab" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-10_14afbb8a-04bc-44d8-9aaa-0d9a22e22532_1024x.jpg?v=1626088640">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="efe3ff7d-c9cb-48ac-924d-2dabe992422c" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-05_1024x.jpg?v=1626087250">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="0f988de3-315b-4415-b309-32ca555d979e" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar_1024x.jpg?v=1626085446">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="f716b480-1882-43a3-8c41-70bb8b74ad6d" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-01_5f632b79-3fe3-4b7d-b786-d3af0ccf2b98_1024x.jpg?v=1628147623">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="c5fea331-1431-44b2-9666-22f26dca7052" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-03_1024x.jpg?v=1626087217">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="c8bc9496-13db-44d1-bf0c-a4a8f6f543d8" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-2_1339417d-c15d-43a2-86b5-ea88f3a6a2b5_1024x.jpg?v=1628147653">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="42fc6298-659e-499b-b015-852b998714b3" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-32_9e25466f-09b1-4500-99a1-62b1f71432ba_1024x.jpg?v=1627296885">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="2fd9f3b5-b6de-4648-91ae-f1b233f9991a" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-06_1024x.jpg?v=1626087283">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="2a9f72f7-74a1-4035-af4c-4a8128b24860" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-07_ef6aa58a-764e-4dc1-89ee-8bb3561eae39_1024x.jpg?v=1628148022">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="dee9ea52-88a7-4e75-9d5c-305b90d57f16" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-08_3259dcba-d4a8-4665-93ff-5d9ead00ba81_1024x.jpg?v=1627296982">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="3d352ece-5c66-4f69-b7aa-689815f988d6" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-09_7f331d5f-9305-4245-bada-4a3837b479a6_1024x.jpg?v=1628147703">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="7e0f5195-06fe-4074-825a-96615d0da0d8" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-10_14afbb8a-04bc-44d8-9aaa-0d9a22e22532_1024x.jpg?v=1626088640">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="3bbcc7c6-b056-4296-900f-a8f9dd23540b" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-19_1024x.jpg?v=1628147769">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="5394ae0e-40a6-40ff-929b-b4ce0202b6c2" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-15_24a0eb98-7067-4eff-94de-2ac6a5a2335e_1024x.jpg?v=1628147786">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="95e775f0-cb7d-4b3f-b730-6d2cc2600821" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-25_825de8cc-963e-4544-89d2-2be0dca0d4b3_1024x.jpg?v=1628147897">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="edceabf2-8dee-475c-901f-1967e638ea63" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-17_cc9bea8d-43c6-4f6c-baa2-0724b130fc2a_1024x.jpg?v=1628078519">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-landscape">
      <div class="masonry-item-move rounded masonry-landscape">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="d221fce1-1a94-474d-92f6-34ee2d325fc7" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-18_be8a6ff9-6149-44b4-893f-a7946ebc6e59_1024x.jpg?v=1628147819">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="b162a054-dbe5-4d29-8711-ceb6036b981e" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-16_f16d4d27-59f7-4ff2-a813-83420abb2c9e_1024x.jpg?v=1628147846">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="02b0d5a5-b82a-4639-82ce-ec7550fd9bc7" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-20_1024x.jpg?v=1626089077">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="bcde3668-3287-4ae7-b29a-6b900578cce2" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Website-63_5866e8f0-cf38-4d17-9951-6fab3a9f441f_1024x.jpg?v=1620809583">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="d7eb80a4-1b93-4041-a17b-f8ff018f60ab" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-10_14afbb8a-04bc-44d8-9aaa-0d9a22e22532_1024x.jpg?v=1626088640">
        </div>
      </div>
    </div>
    
    <div data-depth="0.8" class="masonry-item flex items-center justify-center grid-masonry-portrait">
      <div class="masonry-item-move rounded masonry-portrait">
        <div class="masonry-item-image-wrapper">
          <img class="to-canvas" data-target-id="efe3ff7d-c9cb-48ac-924d-2dabe992422c" src="//cdn.shopify.com/s/files/1/0550/1956/9302/files/Yugen_Tea_Bar-05_1024x.jpg?v=1626087250">
        </div>
      </div>
    </div>
    
  </div>	
</div>
              
            
!

CSS

              
                
#parallax-hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all .2s linear;
  -o-transition: all .2s linear;
  transition: all .2s linear;
}

.masonry-item {
  margin: 25px;
  -ms-flex-preferred-size: 315px;
      flex-basis: 315px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 315px;
          flex: 0 0 315px;
}

.masonry-item.visible {
  opacity: 1;
}

#shopify-section-hero-masonry {
  background: #E3DFD9;
}

#parallax-hero {
  max-width: calc(10*365px);
  height: 2350px;
}

.masonry-item-move {
  -webkit-transition: all .2s linear;
  -o-transition: all .2s linear;
  transition: all .2s linear;
}

.masonry-hero-wrapper {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100vh;
}

.masonry-hero-wrapper::-webkit-scrollbar {
  display: none;
}
e
body .masonry .masonry-show.masonry-item .masonry-item-image-wrapper {
  -webkit-animation: showMasonryMobile;
  animation: showMasonryMobile;
  -webkit-animation-duration: 2.5s;
  animation-duration: 2.5s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0;
}
#parallax-hero-wrapper {
  height: 100vh;
  width: 100%;
  position: relative;
  margin: auto;
  overflow:hidden;
}
.masonry {
  height: 100vh;
  width: 150%;
  padding: 50px 20px;
/*   display: -ms-grid;
  display: grid;
  grid-gap: 40px 50px;
  grid-auto-rows: 100px; */
  -webkit-transform-origin: center center;
      -ms-transform-origin: center center;
          transform-origin: center center; 
}

.masonry .masonry-item .masonry-item-image-wrapper {
  pointer-events: none;
  opacity: 0;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
}


.masonry img {
  cursor: pointer;
}

.masonry .masonry-show.masonry-item .masonry-item-image-wrapper {
  -webkit-animation: zoomImages;
          animation: zoomImages;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

body #parallax-hero {
  position: absolute;
  z-index: 1!important;
}

body #parallax-hero,
body #parallax-hero .masonry-item {
  pointer-events: auto!important;
}

.masonry-item-image-wrapper {
  overflow: hidden;
}

.masonry-portrait {
  width: 315px!important;
  height: 460px!important;
  display: -webkit-box!important;
  display: -ms-flexbox!important;
  display: flex!important;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
}

.masonry-landscape {
  width: 315px!important;
  height: 315px!important;
  display: -webkit-box!important;
  display: -ms-flexbox!important;
  display: flex!important;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
}

#parallax-hero .masonry-item {
  position: relative!important;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  -ms-grid-column-align: center;
      justify-self: center;
  -webkit-transition: all .4s cubic-bezier(0.29, 0.55, 0.4, 0.89);
  transition: all .4s cubic-bezier(0.29, 0.55, 0.4, 0.89);
  -o-transition: all .4s cubic-bezier(0.29, 0.55, 0.4, 0.89);
  transition: all .4s cubic-bezier(0.29, 0.55, 0.4, 0.89);
  transition: all .4s cubic-bezier(0.29, 0.55, 0.4, 0.89), -webkit-transform .4s cubic-bezier(0.29, 0.55, 0.4, 0.89);
}

#parallax-hero .masonry-item img {
  -webkit-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

#parallax-hero .masonry-item:hover img{
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.masonry-portrait img {
  height: 100%;
  border-radius: 8px;
}

.masonry-landscape img {
  width: 100%;
  border-radius: 8px;
}


@media (max-width: 500px) {
  body #parallax-hero {
  	height: 1300px;
    width: calc(7*165px);
    padding: 0;
    -webkit-transition: -webkit-transform .09s linear;
    transition: -webkit-transform .09s linear;
    -o-transition: transform .09s linear;
    transition: transform .09s linear;
    transition: transform .09s linear, -webkit-transform .09s linear;
  }
  
  
  #parallax-hero-wrapper {
    -ms-touch-action: none;
        touch-action: none;
  }

  body .masonry {
    width: 110%;
/*     grid-gap: 30px 20px;
    grid-auto-rows: 30px; */
    padding: 0;
    -webkit-transform-origin: top left;
        -ms-transform-origin: top left;
            transform-origin: top left;
  }
  
  .masonry-item {
    margin: 15px;
    -ms-flex-preferred-size: 145px;
        flex-basis: 145px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 145px;
            flex: 0 0 145px;
  }

  body .masonry .masonry-item {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    -ms-grid-column-align: center;
        justify-self: center;
  }

  body .masonry .masonry-portrait {
    width: 140px!important;
    height: 180px!important;
  }

  body .masonry .masonry-landscape {
    width: 140px!important;
    height: 140px!important;
  }
  
  body .masonry-landscape .masonry-item-image-wrapper,
  body .masonry-portrait .masonry-item-image-wrapper {
    width: 100%;
  }

  body .masonry .masonry-portrait img {
    width: 100%;
    height: 180px;
  }

  body .masonry .masonry-landscape img {
    width: auto;
    height: 220px;
  }
}


@keyframes zoomImages {
  0% {
    opacity: 0.1;
  	-webkit-transform: scale(0);
  	        transform: scale(0)
  }
  50% {
  opacity: 0.4;
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1)
  }

}

@-webkit-keyframes zoomImages {
  0% {
    opacity: 0.1;
  	-webkit-transform: scale(0);
  	        transform: scale(0)
  }
  50% {
  opacity: 0.3;
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1)
  }

}
              
            
!

JS

              
                  document.addEventListener( 'DOMContentLoaded', function () {    setTimeout(() => { // this is not in code, it just waits for codepen to render all the html correctly
  const parallaxWrapper = document.getElementById('parallax-hero')
    const parallaxHeroWrapper = document.getElementById('parallax-hero-wrapper')
    const masonry = document.querySelector('.masonry-hero-wrapper')
    const masonryItems = document.querySelectorAll('#parallax-hero .masonry-item')
  
    let isDown = false
    let scrollLeft = 0
    let scrollTop = 0
    let startX = 0
    let startY = 0
    
    const iObserver = new IntersectionObserver((items) => {
       items.forEach((i, index) => {
         i.target.style.opacity = i.isIntersecting ? '1' : '0'
       })
      })
      
      masonryItems.forEach((m) => {
        iObserver.observe(m)
      })
    
           let lastScrollTop = 0
      let scale = 1

    
      // DRAGGABLE GSAP
    const D = Draggable.create("#parallax-hero", {
        type: "x,y",
        throwProps:true,
      	inertia:true,
      	force3D: false,
      	liveSnap:true,
      	edgeResistance: 0.9,
        minimumMovement:1,
        onDrag: function(e) {
          let dt = new Date(e.timeStamp * 1000)
          let ms = dt.getMilliseconds()
		  if(ms % 100 === 0 || ms % 50 === 0)
          	draggingMasonry(e, this)
        },
        onPress: function() {
          Bounds({
            D: this,
            bounds: 'parallax-hero-wrapper',
            target: this.target.getAttribute('id'),
            partQ: .8,
            top: 40,
            left: 40,
            offsetRight: 140,
            offsetBottom: 140,
          })
        }
      })
	  
    
      function draggingMasonry(event, t) {
        let x = parseInt(t.deltaX * 10).toFixed(2)
        let y = parseInt(t.deltaY * 10).toFixed(2)
        
        x = Math.abs(x) > 30 ? x/20 : (x < 0 ? x - 10 : x + 10)
        y = Math.abs(y) > 30 ? y/20 : (y < 0 ? y - 10 : y + 10)
        x = x === 0 || x === NaN ? 18 : Math.ceil(x/4)*4
        y = y === 0 || y === NaN ? 18 : Math.ceil(y/4)*4
        
        if(window.innerWidth < 500) {
          x = x > 18 ? x/10 + 8 : (x < -18 ? x/10 - 8 : x)
          y = y > 18 ? y/10 + 8 : (y < -18 ? y/10 - 8 : y)
        }
        
        document.querySelectorAll('.masonry-item-move').forEach((e,i) => {
          if(i % 3 === 0 || i % 4 == 0) {
            TweenMax.to(e, 0.6, {x: -x, y: -y })
          }
			
        })
      }
      
    
      
      function Bounds(options) {
        var D = options.D
        var bounds = options.bounds
        var B = document.getElementById(bounds).getBoundingClientRect()
        var target = document.getElementById(options.target).getBoundingClientRect()
        var partQ = (options.partQ === undefined) ? .5: options.partQ
        var left = (options.left === undefined) ? -target.width * partQ : options.left
        var top = (options.top === undefined) ? -target.height * partQ : options.top
        var offsetRight = (options.offsetRight === undefined) ? -target.width * partQ : options.offsetRight
        var offsetBottom = (options.offsetBottom === undefined) ? -target.height * partQ : options.offsetBottom
        D.applyBounds({
          top: top,
          left: left,
          width: B.width - offsetRight - left,
          height: B.height - offsetBottom - top
        })
      }
    
    if(window.innerWidth < 500) {
        document.addEventListener('gesturestart', function(e) {
            e.preventDefault()
            document.body.style.zoom = 0.99
        });
        
      	masonry.addEventListener('gestureend', function(e) {
            if (e.scale > 1.0) {
          	  scale = scale >= 1.3 ? 1.3 : scale + 0.5
              // User moved fingers closer together
            } else if (e.scale < 1.0) {
              scale = scale <= 0.9 ? 0.9 : scale - 0.5
              scale = scale <= 0.9 ? 0.9 : scale
              // User moved fingers further apart
            }
          
          e.preventDefault();
          document.getElementById('parallax-hero').style.transform = `scale(${scale})`
        }, false);
      }

	  masonryImages = [...Array(masonryItems.length).keys()]
      let delay = 0
	  while(masonryImages.length)
      {
          let x = Math.floor(Math.random() * masonryImages.length)
          x = masonryImages.splice(x, 1)
        
          setTimeout(() => {
          if(x)
          	masonryItems[x[0]].classList.add('masonry-show')
            }, delay)
            delay += 50
      }
    },500)
  })
              
            
!
999px

Console