cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="wrap">
  <div class="lud-16 lud">
    <p class="sub-title">16. blend-mode: multiplyを使って、素敵なヒーローイメージを作成しよう。</p>
    <p>白黒に彩度を落とした写真にブレンドモードを利用することで、白文字とのコントラストをうまく表現できる、絶妙な背景色に仕上げます。</p>
    <p>Using blend-mode with a desaturated photo and a background color gives a nice contrast to your hero banner with white text.</p>
    
    <div class="ex-16 example">
      <div class="bg-back"></div>
      <div class="bg"></div>
      <div class="ui">
        <div class="header">
          <p class="logo"><b>Next</b>Big<b>Thing</b></p>
          
          <ul>
            <li>制作実績</li>
            <li>サービス</li>
            <li>メンバー</li>
            <li>お問い合わせ</li>
          </ul>
        </div>
        <div class="body">
          <p class="title">Your ideas are <i>bigger</i> than you think</p>
          <p class="desc">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Iste debitis labore aspernatur ullam rerum, architecto hic quasi.</p>
          
          <a href="#" class="a-1">もっと詳しく</a>
          <a href="#" class="a-2">これまでの事例を見る</a>
        </div>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              *{
  margin: 0;
  outline: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Open Sans', 'Roboto',YuGothic, "Yu Gothic", 游ゴシック体, 游ゴシック, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Roboto, メイリオ, Meiryo, "MS Pゴシック", Osaka, "MS PGothic", Arial, Helvetica, Verdana, sans-serif;
}

.wrap{
  margin: 2rem auto 0;
  width: 90%;
  max-width: 48rem;
}

h1{
  font-weight: normal;
  margin-bottom: 2rem;
}

.wrap p{
  font-size: 1.125rem;
  color: #444;
  line-height: 2;
  margin-bottom: 1rem;
}

.wrap a{
  color: #4687c9;
}

.wrap p.sub-title{
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.lud{
  margin: 4rem 0 4rem;
}

.lud p:nth-child(3){
  font-size: 12px;
  font-style: italic;
  
  
}

.example{
  margin-top: 2.5rem;
}

/* サンプル用スタイリング */
.ex-16{
  position: relative;
}

.ex-16 .bg-back{
  background: #1f494d;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: -2;
}

.ex-16 .bg{
  background: url(http://res.cloudinary.com/dezoitcar/image/upload/v1504550304/960x600-data-out-5-IMW705506853_ahgusi.jpg) no-repeat center center;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  z-index: -1;
}

.ex-16 .header{
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-16 .logo{
  margin-bottom: 0;
  color: #fff;
  font-size: 1rem;
  font-family: 'Georgia';
  font-style: italic;
}

.ex-16 .header ul li{
  display: inline-block;
  list-style: none;
  font-size: .875rem;
  color: #fff;
  margin-left: 1.5rem;
  cursor: pointer;
}

.ex-16 .header ul li:hover{
  color: rgba(255,255,255,0.6);
}

.ex-16 .body{
  padding: 4rem 2rem;
}

.ex-16 .body .title{
  color: #fff;
  font-weight: bold;
  font-size: 2.25rem;
  max-width: 25rem;
  line-height: 1.2;
  width: 100%;
}

.ex-16 .body .desc{
  color: rgba(255,255,255,0.5);
  width: 100%;
  max-width: 30rem;
  font-size: 1rem;
}

.ex-16 .body a{
  background: red;
  padding: .675rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 2rem;
  display: inline-block;
}

.ex-16 .body .a-1{
  color: rgba(0,0,0,0.6);
  background: -moz-linear-gradient(top,  hsl(49, 92%, 71%) 0%, hsl(36, 93%, 73%) 100%);
  background: -webkit-linear-gradient(top,  hsl(49, 92%, 71%) 0%,hsl(36, 93%, 73%) 100%);
  background: linear-gradient(to bottom,  hsl(49, 92%, 71%) 0%,hsl(36, 93%, 73%) 100%);
}

.ex-16 .body .a-2{
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
  margin-left: .5rem;
  padding: calc(.675rem - 1px) 2rem;
}

.ex-16 .body .a-1:hover{
  background: -moz-linear-gradient(top,  hsl(49, 74%, 62%) 0%, hsl(36, 75%, 64%) 100%);
  background: -webkit-linear-gradient(top,  hsl(49, 74%, 62%) 0%,hsl(36, 75%, 64%) 100%);
  background: linear-gradient(to bottom,  hsl(49, 74%, 62%) 0%,hsl(36, 75%, 64%) 100%);
}

.ex-16 .body .a-2:hover{
  background: #fff;
  color: #193A3D;
}
            
          
!
999px
Loading ..................

Console