Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

underline text

.expand{
  position:relative;
  text-decoration:none;
  display:inline-block;
}
.expand:after {
  display:block;
  content: '';
  border-bottom: solid 3px #000;  
  transform: scaleX(0);  
  transition: transform 250ms ease-in-out;
  transform-origin:100% 50%
}
.expand:hover:after { 
  transform: scaleX(1);
  transform-origin:0 50%;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #underline #text
ADD COMMENT
Topic
Name
6+4 =