Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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="b-hero-cover01">
<div class="b-hero-cover01-bg">
<span class="b-hero-cover01-bg__txt">焼き立ての<br>食パンは<br>いかが?</span>


                /* 背景(写真の代わりに緑色) */
.b-hero-cover01 {
  height: 400px;

  display: grid;
  justify-items: center;
  align-content: center;

  position: relative;
  z-index: -1000;
/* キャッチコピーの背景の白いぼかしの円 */
.b-hero-cover01-bg {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(244, 244, 244, 1), rgba(244, 244, 244, .8));
  border-radius: 50%;
  -webkit-filter: blur(10px);
  filter: blur(10px);
  width: clamp(160px, 20%, 260px);

  position: relative;
  z-index: -500;
/* safari15以前でaspect-ratio使えないケースへの対策*/
@supports not (aspect-ratio: 1/1) {
  .b-hero-cover01-bg {
    width: 160px;
    height: 160px;
/* 円の縦横中央に複数行のテキストを設置*/
.b-hero-cover01-bg__txt {
  font-family: 'RocknRoll One', sans-serif;
  font-size: 1.25rem;
  color: var(--charcoal);

  display: inline-block;
  text-align: center;
  width: clamp(160px, 20%, 260px);

  position: absolute;
  z-index: 1000;
  left: 50;
  top: 50%;
  transform: translateY(-50%);