説明・補足

背景が黒いほうがいいです

CSS

.btn_style09 {
 width: 100%;
 max-width: 250px;
 margin: 0 auto;
}

.btn_style09 a {
 display: block;
 padding: 12px 0;
 text-align: center;
 color: #fff;
 text-decoration: none;
 font-weight: normal;
 font-size: 14px;
 font-size: 1.4rem;
 border: 1px solid #545C65;
 position: relative;
}

.btn_style09 a:hover { 
 color: #fff;
 border: 1px solid #fff;
}

.spiral_ani a .spiral-top::before,
.spiral_ani a .spiral-top::after,
.spiral_ani a .spiral-bottom::before,
.spiral_ani a .spiral-bottom::after {
  content: " ";
  background: #fff;
  position: absolute;
  -webkit-box-shadow: 0 0 7px 0 #fff;
  box-shadow: 0 0 7px 0 #fff;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

.spiral_ani a .spiral-top::before {
  top: 0px;
  left: 0px;
  width: 1px;
  height: 100%;
  transform: scale(0);
  transform-origin: top; 
}
.spiral_ani a .spiral-top::after {
  top: 0px;
  right: 0px;
  width: 100%;
  height: 1px;
  transform: scale(0);
  transform-origin: right;
}

.spiral_ani a .spiral-bottom::before {
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 1px;
  transform: scale(0);
  transform-origin: left; 
}
.spiral_ani a .spiral-bottom::after {
  bottom: 0px;
  right: 0px;
  width: 1px;
  height: 100%;
  transform: scale(0);
  transform-origin: bottom; 
}

.spiral_ani a:hover
.spiral-top::before {
  transform: scale(1);
}
.spiral_ani a:hover
.spiral-top::after {
  transform: scale(1);
}
.spiral_ani a:hover
.spiral-bottom::before {
  transform: scale(1);
}
.spiral_ani a:hover
.spiral-bottom::after {
  transform: scale(1);
}

.spiral_ani a:hover .spiral-top::before,
.spiral_ani a:hover .spiral-top::after,
.spiral_ani a:hover .spiral-bottom::before,
.spiral_ani a:hover .spiral-bottom::after {
 background: #000;
}
一覧に戻る