Skip to content
Loading
 
+1
  • Sivakumar Koneti
    0
    Hello dear read once this link 
     
    https://www.w3schools.com/howto/howto_css_image_overlay.asp
    0
  • Gajendra Jangid
    0
    1.   
    2. "en">  
    3.   
    4. Change Image on Hover in CSS  
    5. "text/css">  
    6.     .card {  
    7.         width: 130px;  
    8.         height: 195px;  
    9.         background: url("/examples/images/card-back.jpg") no-repeat;  
    10.         margin: 50px;  
    11.     }  
    12.     .card:hover {  
    13.         background: url("/examples/images/card-front.jpg") no-repeat;  
    14.     }  
    15.   
    16.   
    17.   
    18.     class="card">
      
  •   
  •                               
  • 0
  • Vikas Jha
    0
    Apart from these expert advice you can achieve it in other simple way is to use .png image file instead of .jpg and in css class for the card just add below code snippet .card:hover{ */add required background color/* }
    0