<a class="btn btn-animation-01"><span>もっと見る</span></a>
a.btn {
    background-color: #00358a;/*ホバーした後の色*/
}

.btn-animation-01::before,.btn-animation-01::after {
  background-color: #fff;/*ホバーする前の色*/
}

.btn-animation-01:hover {
  color: #fff !important;/*ホバーした後の文字色*/
}

a.btn {
    text-align: center;
    color: #00358a;
    text-decoration: none;
    padding: 20px 0;
    font-size: 20px;
    display: inline-block;
    width: 200px;
    margin: 1.5em auto;
    border: 1px solid #1d5496;
    position: relative;
}

.btn-animation-01 span {
  position: relative;
  z-index: 1;
}

.btn-animation-01::before,
.btn-animation-01::after {
  content: "";
  display: block;
  width: 51%;
  height: 100%;
  position: absolute;
  top: 0;
  transition: .2s;
}
.btn-animation-01::before {
  left: 0;
}
.btn-animation-01::after {
  right: 0;
}

.btn-animation-01:hover:before,
.btn-animation-01:hover:after {
  width: 0;
  background-color: #fff;/*ホバーする時の横色*/
}




External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.