<p>これは<a href="#">リンク</a>の<a href="#">ホバーエフェクト</a>サンプルです</p>
body {
  font-size: 20px;
  text-align: center;
  padding: 2em 0;
}

a {
  text-decoration: none;
  display: inline-block;
  color: red;
  font-weight: bold;
}

a:after {
  content: '';
  display: block;
  width: 100%;
  border: 1px solid black;
  transform: translate(0px, 6px);
  opacity: 0;
  color: #999;
  transition: transform .2s ease-out, opacity .2s ease-out;
}

a:hover:after {
  transform: translate(0px, 0px);
  opacity: 1;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.