Answers for "how to animate css border-bottom on hover"

CSS
1

css animate border bottom on hover

h1 { color: #666;display:inline-block; margin:0;text-transform:uppercase; }
h1:after {
  display:block;
  content: '';
  border-bottom: solid 3px #019fb6;  
  transform: scaleX(0);  
  transition: transform 250ms ease-in-out;
}
h1:hover:after { transform: scaleX(1); }
h1.fromRight:after{ transform-origin:100% 50%; }
h1.fromLeft:after{  transform-origin:  0% 50%; }
Posted by: Guest on June-25-2021
0

how to animate css border-bottom on hover

EASY! Just use the code by Expensive Earthworm but just replace the 
h1 with the element you want the border-bottom to be animated and applied 
on.
I KNOW THIS IS OBVIOUS BUT SOME ARE JUST GETTING STARTED
SO YE
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language