Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <style>
@import url('https://fonts.googleapis.com/css2?family=RocknRoll+One&display=swap');
</style>
<p>黄色が画面サイズです</p>
<div class="parent">
  <h1>2021 お台場は 生まれかわった</h1>
</div>
              
            
!

CSS

              
                .parent{
  /*positionで画面を覆う*/
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  /*背景は画像のURL*/
  background:url(https://magazine-cf.techacademy.jp/wp-content/uploads/2021/10/17211417/responcive_sample.jpg);
  
  /*背景の位置はアニメーションで動かす*/
  animation: move 15s ease-in infinite both;
  
  /*文字表示位置の設定*/
  display:flex;
  align-items:center;
}

/*アニメーションの設定*/
@keyframes move{
  0% {
    background-size:100%;
    background-position:0% 0%;
  }
  70%,100% {
    background-size:110%;
    background-position:100% 85%;
  }
}
/*タイポ*/
h1{
  margin: 0 auto;
  font-family: 'RocknRoll One', sans-serif;
  font-size:20px;
  padding:15px;
  /*裏面をぼかす*/
  background-color:#FFFFFF70;
  backdrop-filter:blur(5px);
  /*色のブレンド*/
  color:black;
  mix-blend-mode: overlay;
}

/*余白のリセット*/
*{
  margin:0;
}
/*背景は黄色に*/
body{
  background:yellow;
}
              
            
!

JS

              
                
              
            
!
999px

Console