CSS - using line transition animation on ::before

0 votes
64 views
added Jul 21, 2021 in CSS by lcjr First Warrant Officer (9,190 points)
&::after,
&::before {
  background: ${mainColor};
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transition: all 0.7s ease-in-out;
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...