Is there a way to smoothly resize my background image instead of it jumping abruptly?
Currently, when using media queries, the background image goes from 900px to 300px in height instantly at a certain point. How can I make this transition more gradual?
.hero {
background:url('http://placehold.it/1400x900') center center no-repeat;
background-size:cover;
height:900px;
}
@media only screen and (max-width: 420px) {
.hero {
height:300px
}
}
<div class="hero">
</div>