Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

add expanding underline on page load css

#sec {
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}
#sec:after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0px;
  background: transparent;
  transition: width .5s ease, background-color .5s ease;
}
#sec:hover:after {
  width: 100%;
  background: blue;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #expanding #underline #page #load #css
ADD COMMENT
Topic
Name
3+8 =