I need to change color when my image on hover.
I have div with img inside, so when I hover my image I change opacity to 0.3 but the color is white and I wanna change it to green, is it possible??
<div class="col-md-4 col-sm-6" style="padding: 0px !important;width:50px;height: 350px">
<img class="img-fluid " id="myImg" src="img1.png" alt="" style="width:100%;height: 100%">
</div>
#myImg{
cursor: pointer;
transition: 0.3s;
}
#myImg:hover,{
opacity: 0.3;}
divnext to image, set its position toabsoluteand change its color and etc on hover.