transition: opacity .2s ease,visibility .2s ease,transform .2s ease,-webkit-transform .2s ease;
<picture>
<source srcset="mdn-logo-wide.png" media="(min-width: 600px)">
<img src="mdn-logo-narrow.png" alt="MDN">
</picture>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
section {
max-width: 600px;
width: 100%;
background: red;
min-height: 200px;
}