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.

+ add another resource


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


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.


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.


                <div class="wrap"> 
  <h1>CSS Design Sample</h1>
  <h2>CSSで作るグラデーション no.3</h2>



                @import url("|Didact+Gothic|Prata");

* {
  margin: 0;
  padding: 0;
body {
  width: 100%;
  height: 100%;
body {
  font-family: "Didact Gothic", sans-serif;
  display: table;
h1, h2 {
  color: #b71c1c;
  text-shadow:0 1px 1px #fff;
h1 {
  font-family: "Cormorant SC", serif;
  font-size: 2em;
  line-height: 1em;
h2 {
  margin: 0.5em 0;
  font-size: 1.1em;
  line-height: 1.4em;
.wrap {
  display: table-cell;
  margin: auto;
  text-align: center;
  vertical-align: middle;
  color: #333;
  /* 色相ローテーション:グラデーションの設定 */
  background: -webkit-gradient(
      center center,
      center center,
      from(rgba(255, 255, 255, 0)),
  background-image: radial-gradient(rgba(255, 255, 255, 0), #AAE);
  opacity: 1; // さらに背景画像を透過させる場合に使用
  /* 色相ローテーション:アニメーションの設定 */
  animation: huerotate 6s infinite alternate;
/* 色相ローテーション:アニメーションのキーフレーム定義 */
@keyframes huerotate {
  0% {
    -webkit-filter: hue-rotate(0deg);
    filter: hue-rotate(0deg);
  100% {
    -webkit-filter: hue-rotate(360deg);
    filter: hue-rotate(360deg);