<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" rel="stylesheet">
<style>@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;
}</style>
</head>
<body>
<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>
<script>
</script>
</body>
</html>
/* 
   外部依存 CSS:
     - https://cdnjs.cloudflare.com/animate.min.css
     - https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.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;
}
/* 
   外部依存 CSS (このデモは下記の CSS にも依存します):
     - https://cdnjs.cloudflare.com/animate.min.css
     - https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css
 */