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 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 class="area">
  
<!--   レンガ -->
  <div class="tex1 texture">
    <div class="renga">
      <svg viewBox="0 0 300 150">
      <defs>
        <filter id="feTurbulence" filterUnits="userSpaceOnUse" x="0" y="0" width="300" height="150">
          <feTurbulence type="turbulence" baseFrequency="0.5" numOctaves="1000" seed="1000" stitchTiles="noStitch">
        </filter>
      </defs>
      <circle filter="url(#feTurbulence)" cx="1000" cy="1000" r="1000" fill="#000" stroke="#000" stroke-width="1000">
    </svg>
    </div>
  </div>
<!--       有孔ボード -->
      <div class="tex2 texture">
         <div class="yu-ko-board"></div>
      </div>
<!--       木目 -->
      <div class="tex3 texture"></div>
</div>
              
            
!

CSS

              
                .texture {
margin-bottom: 10px;
}

.tex1 {
  width: 300px;
  height: 150px;
  background-color: silver;
  background-image: linear-gradient(335deg, #945400 23px, transparent 23px),
      linear-gradient(155deg, #ad6300 23px, transparent 23px),
      linear-gradient(335deg, #945400 23px, transparent 23px),
      linear-gradient(155deg, #ad6300 23px, transparent 23px);
    background-size: 58px 58px;
    background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
}

.tex2 {
  width: 300px;
  height: 150px;
  background-color: #eca55c;
  background-image:
      radial-gradient(#7d4700 18%, transparent 18%);
  background-size: 20px 20px;
  position: relative;
}

.yu-ko-board {
  width: 300px;
  height: 150px;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(0deg,
        #000 25%, #ebf7ff 25%,
        #ebf7ff 50%, #000 50%,
        #000 75%, #ebf7ff 75%,
        #ebf7ff);
  background-size: 6px 6px;
  opacity: 0.1;
}

.tex3 {
  width: 300px;
  height: 150px;
  background: linear-gradient(-90deg, rgba(190, 100, 30, 1),
        rgba(160, 120, 60, 1) 30%,
        rgba(180, 147, 82, 1));
    background: repeating-radial-gradient(ellipse at 40% 5000%, #80582e,
        #80582e 0.2%,
        #916637 0.7%,
        #916637 1%);
}
              
            
!

JS

              
                
              
            
!
999px

Console