<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<style>@charset "utf-8";

/*== 背景共通設定 */
body {
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("/wp-content/uploads/demos/_assets/img_06.jpg");
  object-fit: cover;
}

/*== 無限に波紋が広がる */

.btnripple2 {
  /*波紋の基点とするためrelativeを指定*/
  position: relative;
  /*波紋の形状*/
  display: inline-block;
  background: #ff0000;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  color: #ccc;
  outline: none;
  /*アニメーションの設定*/
  transition: all 0.3s;
}

/*hoverした際の背景色の設定*/
.btnripple2:hover {
  background: #bb0000;
}

/*波形を2つ設定*/
.btnripple2::after,
.btnripple2::before {
  content: "";
  /*絶対配置で波形の位置を決める*/
  position: absolute;
  left: -25%;
  top: -25%;
  /*波形の形状*/
  border: 1px solid #ff0000;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*ループするアニメーションの設定*/
  animation: 1s circleanime linear infinite;
}

/*波形の2つ目は0.5秒遅らせてアニメーション*/
.btnripple2::before {
  animation-delay: 0.5s;
}

/*波形のアニメーション*/
@keyframes circleanime {
  0% {
    transform: scale(0.68);
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/*中央矢印*/
.btnripple2 span::after {
  content: "";
  /*絶対配置で矢印の位置を決める*/
  position: absolute;
  top: 40%;
  left: 45%;
  /*矢印の形状*/
  border: 16px solid transparent;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-color: #fff;
}

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

body {
  vertical-align: middle;
  padding: 100px 0;
  text-align: center;
}

p {
  margin: 0 0 10px 0;
}</style>
</head>
<body>
<body>
<a href="#" class="btnripple2">
<span>
</span>
</a>
<script>
</script>
</body>
</html>
/* 
   外部依存 CSS:
     - https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css
 */

@charset "utf-8";

/*== 背景共通設定 */
body {
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("/wp-content/uploads/demos/_assets/img_06.jpg");
  object-fit: cover;
}

/*== 無限に波紋が広がる */

.btnripple2 {
  /*波紋の基点とするためrelativeを指定*/
  position: relative;
  /*波紋の形状*/
  display: inline-block;
  background: #ff0000;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  color: #ccc;
  outline: none;
  /*アニメーションの設定*/
  transition: all 0.3s;
}

/*hoverした際の背景色の設定*/
.btnripple2:hover {
  background: #bb0000;
}

/*波形を2つ設定*/
.btnripple2::after,
.btnripple2::before {
  content: "";
  /*絶対配置で波形の位置を決める*/
  position: absolute;
  left: -25%;
  top: -25%;
  /*波形の形状*/
  border: 1px solid #ff0000;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*ループするアニメーションの設定*/
  animation: 1s circleanime linear infinite;
}

/*波形の2つ目は0.5秒遅らせてアニメーション*/
.btnripple2::before {
  animation-delay: 0.5s;
}

/*波形のアニメーション*/
@keyframes circleanime {
  0% {
    transform: scale(0.68);
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/*中央矢印*/
.btnripple2 span::after {
  content: "";
  /*絶対配置で矢印の位置を決める*/
  position: absolute;
  top: 40%;
  left: 45%;
  /*矢印の形状*/
  border: 16px solid transparent;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-color: #fff;
}

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

body {
  vertical-align: middle;
  padding: 100px 0;
  text-align: center;
}

p {
  margin: 0 0 10px 0;
}
/* 
   外部依存 CSS (このデモは下記の CSS にも依存します):
     - https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css
 */