DEV Community

paul-coder-22
paul-coder-22

Posted on

Answer: Hover underline effect with Elementor CSS

Your code almost works - the problem is the transition-property. You have left right which is not legal CSS. And in fact you only want to transition the right property, the underline stays anchored at the left side.

.underline {
  display: inline;
  position: relative;
  overflow: hidden;
}

.underline::after

Top comments (0)