CSS scaleX animation error

problem description

when writing a simple page, use scaleX + pseudo elements to do an extended animation, and it is found that there is residue at the bottom of the animation when shrinking

.

related codes

@transition-function: cubic-bezier(.4, 0, .2, 1);
a:before {
  position: absolute;
  content: "";
  height: 2px;
  background-color: rgba(30, 144, 255, 1.0);
  transition: 200ms @transition-function;
  transform: scaleX(0);
  width: 100%;
  bottom: 0px;
  top: auto;
}
a:hover {
  &:before {
    transform: scaleX(1);
  }
}

screenshot of the situation
clipboard.png

Chrome 71.0.3569.0
Windows 10 1809 (17763.1)

Feb.24,2022

can I reproduce it with another browser? Do you have a reproduction address? Did not find the same problem

http://jsrun.net/QChKp/edit


are you talking about the underscore that comes with the a tag? Do you want to play a guess with us when you remove
from text-decoration?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48984-59d16.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48984-59d16.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?