I creating a website banner using HTML, CSS and slick. In desktop it looks good, but in mobile devices it looks small, when I tried to increase the height of the image, the image got stretched and some part of the images got cut. how to solve this
<section class="bannerarea"> <div class="topbanner"> <div><img src="/assets/img/banner/ayurvedhaproducts.jpg" /></div> <div><img src="/assets/img/banner/chlorophyl.jpg" /></div> <div><img src="/assets/img/banner/agroproducts.jpg" /></div> </div> </section> .topbanner .cubeanimation { width: 100%; -webkit-transition: all 1s cubic-bezier(0.7, 0, 0.3, 1); transition: all 1s cubic-bezier(0.7, 0, 0.3, 1); -webkit-transform: scale(1.2); transform: scale(1.2); } .topbanner .slider-track { -webkit-transition: all 1s cubic-bezier(0.7, 0, 0.3, 1); transition: all 1s cubic-bezier(0.7, 0, 0.3, 1); } .topbanner .slick-active { -webkit-transform: scale(1.2); transform: scale(1.2); -webkit-animation: cssAnimation 8s 1 ease-in-out forwards; animation: cssAnimation 8s 1 ease-in-out forwards; }