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

              
                <head>
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <!--==============Animate.cssのCDNを読み込み===============-->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css">

  <!--==============レイアウトを制御する独自のCSSを読み込み===============-->
  <link href="https://assets.codepen.io/6329135/reset04.css" rel="stylesheet">
</head>

<body>
  <div class="wrapper">
    <!--基本設定&アニメーションの回数設定-->
    <div class="flex">
      <div class="box animate__animated animate__fadeInUp">すぐ現れるボックス</div>
      <div class="box animate__animated animate__fadeInUp animate__infinite">アニメーション無限ループ</div>
      <div class="box animate__animated animate__fadeInUp count2">独自設定:アニメーション回数指定(2回)</div>
      <!--/flex-->
    </div>

    <!--アニメーションがスタートするタイミング設定-->
    <div class="flex">
      <div class="box animate__animated animate__fadeInUp animate__delay-1s">アニメーションが1秒遅れでスタート</div>
      <div class="box animate__animated animate__fadeInUp animate__delay-2s">アニメーションが2秒遅れでスタート</div>
      <div class="box animate__animated animate__fadeInUp animate__delay-3s">アニメーションが3秒遅れでスタート</div>
      <div class="box animate__animated animate__fadeInUp animate__delay-4s">アニメーションが4秒遅れでスタート</div>
      <div class="box animate__animated animate__fadeInUp animate__delay-5s">アニメーションが5秒遅れでスタート</div>
      <div class="box animate__animated animate__fadeInUp delay-time">(CSS独自設定)アニメーションが10秒遅れでスタート</div>
      <!--/flex-->
    </div>

    <!--アニメーションの変化時間の設定-->
    <div class="flex">
      <div class="box animate__animated animate__fadeInUp animate__slow">アニメーションの変化のスピードが遅い</div>
      <div class="box animate__animated animate__fadeInUp animate__slower">アニメーションの変化のスピードがさらに遅い</div>
      <div class="box animate__animated animate__fadeInUp animate__fast">アニメーションの変化のスピードが速い</div>
      <div class="box animate__animated animate__fadeInUp animate__faster">アニメーションの変化のスピードがさらに速い</div>
      <div class="box animate__animated animate__fadeInUp change-time">(CSS独自設定)アニメーションの変化のスピードが7秒</div>
      <!--/flex-->
    </div>

    <!--/wrapper-->
  </div>
</body>
              
            
!

CSS

              
                @charset "utf-8";

/* アニメーションの回数を決めるCSS*/

.count2 {
  animation-iteration-count: 2; /*この数字を必要回数分に変更*/
}

/* アニメーションスタートの遅延時間を決めるCSS*/

.delay-time {
  animation-delay: 10s;
}

/* アニメーション自体が変化する時間を決めるCSS*/

.change-time {
  animation-duration: 7s; /*この数字を変化させたい時間に変更*/
}

/*========= レイアウトのためのCSS ===============*/

body {
  vertical-align: middle;
  text-align: center;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: linear-gradient(
    109.6deg,
    rgba(218, 185, 252, 1) 11.2%,
    rgba(125, 89, 252, 1) 91.1%
  );
}

.wrapper {
  overflow: hidden;
  padding: 20px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.box {
  width: 250px;
  padding: 20px;
  margin: 0 20px 20px 0;
  color: #333;
  box-sizing: border-box;

  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);

  box-shadow: 0px 6px 15px 0px rgba(142, 142, 142, 0.19);
  -webkit-box-shadow: 0px 6px 15px 0px rgba(142, 142, 142, 0.19);

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  -webkit-border-radius: 12px;
}

a {
  text-decoration: none;
  display: block;
}

              
            
!

JS

              
                
              
            
!
999px

Console