css – How to make text shadow appear smoothly on hover

Question:

When you hover over the link, a shadow should appear smoothly. Can't make the process smooth. Googled for a long time but couldn't find it.

Answer:

That's just a little bit nice

.inner {
  cursor: pointer;
}

span {
  font-size: 60px;
  font-family: sans-serif;
  transition: 1s;
  font-weight: 600;
}

.inner:hover span {
  text-shadow: 0 0 3px #000;
  color: #fff;
}

span:nth-child(1) {
  transition-delay: 0.1s;
}

span:nth-child(2) {
  transition-delay: 0.2s;
}

span:nth-child(3) {
  transition-delay: 0.3s;
}

span:nth-child(4) {
  transition-delay: 0.4s;
}

span:nth-child(5) {
  transition-delay: 0.5s;
}

span:nth-child(6) {
  transition-delay: 0.6s;
}

span:nth-child(7) {
  transition-delay: 0.7s;
}

span:nth-child(8) {
  transition-delay: 0.8s;
}

span:nth-child(9) {
  transition-delay: 0.9s;
}

span:nth-child(10) {
  transition-delay: 1s;
}
<div class="inner">
  <span>t</span>
  <span>e</span>
  <span>x</span>
  <span>t</span>
  <span>s</span>
  <span>h</span>
  <span>a</span>
  <span>d</span>
  <span>o</span>
  <span>w</span>
</div>
Scroll to Top