Tab bar - test 1

Inspired by https://codepen.io/ainalem/details/KBvOWV

by Julien Roche

HTML

<body class="main">
  <div class="main__over-footer"></div>
  <footer class="main__footer">
    <div class="main__footer__item">Text A</div>
    <div class="main__footer__item">Text B</div>
    <div class="main__footer__item">Text C</div>
    <div class="main__footer__item">Text D</div>
  </footer>
</body>

CSS

html,
body{
  border: none;
  height: 100%;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  width: 100%;
}

.main {
  background-color: #34495e;
  overflow: hidden;
  position: relative;
}

.main__over-footer {
  background-color: white;
  display: block;
  height: 3rem;
  width: 6.25%;
  border-radius: 3rem;
  transform: scaleX(4); /* 6.25% * 4 = 25% */
  position: absolute;
  bottom: 20px;
  left: 9.5%;
}

.main__footer {
  background-color: #c0392b;
  bottom: 0px;
  color: #ecf0f1;
  display: flex;
  height: 3rem;
  left: 0px;
  position: absolute;
  right: 0px;
  z-index: 5;
}

.main__footer__item {
  cursor: pointer;
  flex: 1 1 0px;
  font-weight: bolder;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
}

.main__footer__item:hover {
  background-color: #e74c3c;
}