<div class="container">
  <div class="text">
    <span>A</span>
    <span>l</span>
    <span>w</span>
    <span>a</span>
    <span>y</span>
    <span>s</span>
  </div>
  <div class="text">
    <span>B</span>
    <span>e</span>
    <span></span>
    <span>H</span>
    <span>a</span>
    <span>p</span>
    <span>p</span>
    <span>y</span>
  </div>
</div>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #222;
}

.text {
  position: relative;
  text-transform: uppercase;
  color: #222;
  font-size: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.text span {
  text-align: center;
  background-color: #185adb;
  width: 60px;
  margin-right: 2px;
}

.text:hover span:nth-child(odd) {
  transform: skewY(15deg);
}

.text:hover span:nth-child(even) {
  transform: skewY(-15deg);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.