<div class="container">
  <div class="text text1">
    <span>k</span>
    <span>i</span>
    <span>r</span>
    <span>a</span>
    <span>n</span>
  </div>

  <div class="text text2">
    <span>k</span>
    <span>i</span>
    <span>r</span>
    <span>a</span>
    <span>n</span>
  </div>

  <div class="text text3">
    <span style="--i:1">k</span>
    <span style="--i:2">i</span>
    <span style="--i:3">r</span>
    <span style="--i:4">a</span>
    <span style="--i:5">n</span>
  </div>

  <div class="text text4">
    <span>k</span>
    <span>i</span>
    <span>r</span>
    <span>a</span>
    <span>n</span>
  </div>

  <div class="text text5">
    <span>k</span>
    <span>i</span>
    <span>r</span>
    <span>a</span>
    <span>n</span>
  </div>

  <div class="text text6">
    <span style="--i:0">k</span>
    <span style="--i:1">i</span>
    <span style="--i:2">r</span>
    <span style="--i:3">a</span>
    <span style="--i:4">n</span>
  </div>
</div>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(45deg, #222 0%, #555 100%);
}

.text {
  position: relative;
  margin: 50px;
}

.text::before,
.text::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 5px;
  background: #ff0f7b;
  box-shadow: 1px 1px #000;
  transition: all 250ms ease;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.text::before {
  top: 0px;
  left: 0px;
}
.text::after {
  bottom: 0px;
  right: 0px;
}

.text span {
  color: #fff;
  text-shadow: 3px 3px 3px #000;
  font-size: 50px;
  display: inline-block;
  text-align: center;
  width: 50px;
  text-transform: uppercase;
  transform: rotateY(0) translateZ(0);
  transition: transform 100ms ease;
}

.text1:hover:before {
  left: 80%;
  background: #ff0f7b;
}

.text1:hover:after {
  right: 80%;
  background: #ff0f7b;
}

.text1:hover span:nth-child(3) {
  color: #ff0f7b;
  text-shadow: 0 0 0 #000;
  transform: rotateY(180deg) translateZ(0px);
}

/* Style 2 */

.text2:hover span {
  color: #000;
  text-shadow: 0 0 0 #000;
}

.text2:hover:before {
  left: 80%;
  background: #000;
}

.text2:hover:after {
  right: 80%;
  background: #000;
}

.text2:hover span:nth-child(3) {
  color: #fff;
  transform: rotateY(180deg) translateZ(0px);
}

/* Style 3 */

.text3::before,
.text3::after {
  width: 0px;
  left: 0px;
  height: 2px;
  background: #000;
}

.text3 span {
  text-shadow: 1px 1px 1px #444;
  transform: rotateY(0deg) translateZ(0px);
  transition: transform 500ms ease, color 500ms ease;
  transition-delay: calc(100ms * var(--i));
}

.text3:hover:before,
.text3:hover:after {
  width: 100%;
}

.text3:hover span {
  color: #000;
  transform: rotateY(360deg) translateZ(0px);
}

/* Style 4 */

.text4 {
  position: relative;
  z-index: 2;
}

.text4::before,
.text4::after {
  width: 0%;
  top: 0px;
  height: 100%;
  z-index: -1;
}

.text4::after {
  background: rgba(0, 0, 0, 0.5);
  right: 0px;
}

.text4::before {
  left: 0px;
  background: rgba(255, 355, 255, 0.5);
}

.text4:hover:before,
.text4:hover:after {
  width: 100%;
}

.text4:hover span {
  color: #f00;
  transform: rotateY(360deg) translateZ(0px);
}

/* Style 5 */

.text5::before,
.text5::after {
  content: none;
}

.text5 span:nth-child(3) {
  position: relative;
  display: inline-block;
}

.text5:hover span:nth-child(3) {
  color: #f40752;
  transition: color 300ms ease;
}

.text5 span:nth-child(3)::before {
  content: "";
  position: absolute;
  width: 100%;
  bottom: 0px;
  height: 2px;
  left: 0px;
  background: #f40752;
  transition: bottom 300ms ease;
}

.text5:hover span:nth-child(3)::before {
  bottom: 100%;
}

/* Style 6 */

.text6::before,
.text6::after {
  content: none;
}

.text6 span {
  position: relative;
  display: inline-block;
  color: #fff;
  transition: color 500ms linear;
  transition-delay: calc(100ms * var(--i));
}

.text6:hover span {
  color: #f40752;
}

.text6 span::before {
  content: "";
  position: absolute;
  width: 100%;
  bottom: 0px;
  height: 2px;
  left: 0px;
  background: #f40752;
  transition: bottom 500ms ease;
  transition-delay: calc(100ms * var(--i));
}

.text6:hover span::before {
  bottom: 100%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.