JSFiddle - React, Tailwind, and code Playground
HTML
<div class="zoomBox">
<a class="car-one" href="#">Mercedes</a>
</div>
CSS
html, body {
margin:0px; padding: 0px; margin-left:37px;
}
.zoomBox {
max-width: 800px;
height: 300px;
margin-left: auto;
margin-right: auto;
border: none;
overflow: hidden;
position: relative;
}
.zoomBox a {
display: block;
height: 100%; width: 100%;
padding-top: 1em;
text-decoration: none;
color: #ffffff;
font-family: arial;
text-align: left;
font-size: 15px;
}
.zoomBox a::before {
content:""; width: 100%; height: 100%;
position: absolute; top: -1em; z-index: -1;
transition: all 0.5s;
filter:none;
background-image: url(http://webwonder-media-test.info/wp-content/uploads/2018/03/amg-1880381_1920.jpg);
background-size: 100%; background-repeat: no-repeat;
}
.zoomBox a:hover::before, .zoomBox a:focus::before {
transform: scale(1.05);
filter: saturate(2);
}
/* Media Queries */
@media screen and (max-width: 960px) {
.zoomBox {width: 100%; margin: 20px 0px}
}