Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 class="contents">
   <div class="item">
     <p>元画像</p> 
       <img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg">
           </div>
     <div class="item">
       <p>multiply(乗算)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="multiply"></div>
    </div>
</div>  
<div class="contents">
   <div class="item">
     <p>screen(スクリーン)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="screen"></div>
    </div>
     <div class="item">
       <p>overlay(オーバーレイ)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="overlay"></div>
    </div>
</div>  
<div class="contents">
   <div class="item">
     <p>color-burn(焼き込みカラー)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="color-burn"></div>
    </div>
     <div class="item">
       <p>color-dodge(覆い焼きカラー) </p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="color-dodge"></div>
    </div>
</div>  
<div class="contents">
   <div class="item">
     <p>soft-light(ソフトライト)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="soft-light"></div>
    </div>
     <div class="item">
       <p> hard-light(ハードライト)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="hard-light"></div>
    </div>
</div>  
<div class="contents">
   <div class="item">
     <p>darken(暗く)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="darken"></div>
    </div>
     <div class="item">
       lighten(明るく)
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="lighten"></div>
    </div>
</div> 
<div class="contents">
   <div class="item">
       difference(差の絶対値)
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="difference"></div>
    </div>
     <div class="item">
       <p> exclusion(除外)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="exclusion"></div>
    </div>
</div> 
<div class="contents">
   <div class="item">
     <p>hue(色相)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="hue"></div>
    </div>
     <div class="item">
       <p>aturation(彩度)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="saturation"></div>
    </div>
</div> 
<div class="contents">
 <div class="item">
   <p>color(カラー)</p>
       <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="color"></div>
    </div>
     <div class="item">
       <p>luminosity(輝度)</p>
        <div class="bg_color"><img src="https://www.tam-tam.co.jp/tipsnote/wpdata/wp-content/uploads/2017/06/img04.jpg" class="luminosity"></div>
    </div>
</div>  


              
            
!

CSS

              
                img {
  width: 100%;
  height:auto;
  margin-bottom: -6px;
}
.contents{
  display: flex;
  justify-content: space-between;
  max-width:980px;
  margin: 20px auto 50px;
  flex-direction: row;
}
.contents .item {
  flex-basis: 48%;
}
p{
  font-size:18px;
  margin:0;
  padding:0;
}

.bg_color { 
  background: rgba(250,192,17,0.5); 
  
}

/* 乗算 */
.multiply { mix-blend-mode: multiply; } 

/* スクリーン */
.screen { mix-blend-mode: screen; }

/* オーバーレイ */
.overlay { mix-blend-mode: overlay; }

/* 焼き込み */
.color-burn { mix-blend-mode: color-burn; } 

/* 覆い焼き */
.color-dodge { mix-blend-mode: color-dodge; } 

/* ソフトライト */
.soft-light { mix-blend-mode: soft-light; } 

/* ハードライト */
.hard-light { mix-blend-mode: hard-light; } 

/* 比較(暗) */
.darken { mix-blend-mode: darken; } 

/* 比較(明) */
.lighten { mix-blend-mode: lighten; } 

/* 差の絶対値 */
.difference { mix-blend-mode: difference; } 

/* 除外 */
.exclusion { mix-blend-mode: exclusion; }

/* 色相 */
.hue { mix-blend-mode: hue; } 

/* 彩度 */
.saturation { mix-blend-mode: saturation; } 

/* カラー */
.color { mix-blend-mode: color; } 

/* 輝度 */
.luminosity { mix-blend-mode: luminosity; }
              
            
!

JS

              
                
              
            
!
999px

Console