0
I have an image and at Hover, I want to present a dash at the top of the image growing from the middle out. example here (below "our Programs"): http://www.templatemonster.com/demo/58536.html
I’m using the code below, but I can’t put the dash at the top, and it doesn’t come out at the bottom.
.sliding-middle-out {
display: inline-block;
position: relative;
padding-bottom: 3px;
}
.sliding-middle-out:after {
content: '';
display: block;
margin: auto;
height: 3px;
width: 0px;
background: transparent;
transition: width .5s ease, background-color .5s ease;
}
.sliding-middle-out:hover:after {
width: 100%;
background: blue;
}