JSFiddle - React, Tailwind, and code Playground

HTML

<div id="fp-small-feature-1"><a href="http://www.mtpassemblies.com/mtp-management/lgx-cassettes/"><img src="http://www.mtpassemblies.com/wp-content/uploads/2012/02/fp-mtp-lgx-cassette.jpg" /></a>
<div class="bar"></div>
</div>

CSS

.bar {
background-color: #c82020;
float: left;
height: 10px;
width: 0px;
margin-top: -15px;
z-index: 15;
position: absolute;
}

JavaScript

jQuery(document).ready(function(){
jQuery("#fp-small-feature-1").mouseenter(function(){
    jQuery(".bar").animate({width: "264px"},500);
}); 
 
jQuery("#fp-small-feature-1").mouseleave(function(){
    jQuery(".bar").animate({width: "0px"},800);
}); 

});