When I put my mouse over it, the background image shows up in an instant. I want to show a gradual trasition. How can I fix this?
.category__mid { min-height: 260px; width: 200px; border: 2px solid #000; background-size: cover; background-repeat: no-repeat; background-position: center; background-color: rgba(255, 255, 255, 1); background-blend-mode: lighten; transition: all 0.9s ease; } .category__mid:hover { background-color: rgba(255, 255, 255, 0); background-blend-mode: normal; } <div class="category__mid" style="background-image: url('https://i.postimg.cc/NG159gHv/pexels-kampus-production-8439682.jpg')"> <h3>I want to show transition on hover. NOT when the user leaves</h3> </div>