I have an image and in the hover, I want to present a trace at the top of the image to grow from the middle out. example here (below "our programs"): link
I'm using the code below, but I can not put the trace on top, and it does not leave 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; }