<a href="#">animasyonlu altı çizgili metinler</a>

<a href="#" class="soldan">animasyonlu altı çizgili metinler</a>

<a href="#" class="sagdan">animasyonlu altı çizgili metinler</a>
:root {
  --link-color: oklab(1 0 0);
  --underline-color: oklab(0.88 -0.19 0.18);
}

a {
  position: relative;
  color: var(--link-color);
  text-decoration: none;
}

a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 4px;
  bottom: 2px;
  left: 0;
  background: var(--underline-color);
  transform: scaleX(0);
  transition: transform 0.25s ease-out;
}

a:hover::before {
  transform: scaleX(1);
}

.soldan:before {
  transform-origin: bottom left;
}

.sagdan:before {
  transform-origin: bottom right;
}














@import url("https://fonts.googleapis.com/css2?family=Viaoda+Libre&display=swap");

body {
  font-family: "Lato", sans-serif;
  background-color: oklab(0.28 0 0);
  line-height: 1.5;
  font-size: 36px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  height: 100vh;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.