.button1 img{
    max-width: 30%;
    height: auto;
    opacity: .5;
    transition: opacity 0.5s ease-in-out;
}

.button1 img:hover {
    opacity: 1;
}

.my-image {
    background-image: url(../img/red-button.png);
    background-size: cover;
    width: 200px;
    height: 200px;
    transition: background-image 0.3s ease-in-out;
}

.my-image:hover {
    background-image: url(../img/blue-button.png);
  }

/* figure{
    position: relative;
}

.figure img{
    position: absolute;
    top: 0;
    left: 0;
    max-width: 30%;
    height: auto;
}

figure .visible {
    opacity: 1;
    /* background-image: url(../img/blue-button.png); */
    /* transition: background-image 0.3 ease-in-out;
} */

/* figure .visible:hover{
    background-image: url(../img/blue-button.png);
} */ 





/* .my-btn {
    background-image: url(../img/red-button.png);
    background-repeat: no-repeat;
    background-size: contain;
    color: white;
    border: none;
    padding: 10px 20px;
    transition: background-image 0.3s ease-in-out;
  } */
  
  /* .my-btn:hover {
    background-image: url(../img/blue-button.png);
  } */