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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <h2>font-display: swap;</h2>
<p>
  我等の故郷に歸らんとする、我等の往時の状態に還らんとする、希望と欲望とを見よ。如何にそれが、光に於ける蛾ひとりむしに似てゐるか。絶えざる憧憬を以て、常に、新なる春と新なる夏と、新なる月と新なる年とを、悦び望み、その憧憬する物の餘りに遲く來るのを歎ずる者は、實は彼自身己の滅亡を憧憬しつつあると云ふ事も、認めずにしまふ。しかし、この憧憬こそは、五元の精髓であり精神である。それは肉體の生活の中に幽閉せられながら、しかも猶、その源に歸る事を望んでやまない。自分は、諸君にかう云ふ事を知つて貰ひたいと思ふ。この同じ憧憬が、自然の中に生來存してゐる精髓だと云ふ事を。さうして、人間は世界の一タイプだと云ふ事を。
</p>
<p>
  おお「時」よ。一切を滅却する爾よ。おお嫉みふかき時代よ。爾は、年の鋭き齒牙を以て、徐なる死に、一切を破壞し、一切を併呑する。ヘレンは、老年が面上に刻した皺を、鏡中の影に認めた時、泣いて、何故に彼女が二度までも誘拐し去られたかを怪んだ。
</p>

<p><small>レオナルド・ダ・ヴインチの手記</small></p>
              
            
!

CSS

              
                @font-face{
  font-family: 'makinas';
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/85188/makinas.woff') format('woff');
  font-display: swap;
}
p {
  font-family: 'makinas', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
}
small {
  font-size: 0.75rem;
  color: #ccc;
}
              
            
!

JS

              
                
              
            
!
999px

Console