html - Disable hover for different screen size -


i have 7 images , 7 images zoomed when mouse on over it. style want apply desktop version.

unfortunately, when use @media screen other platforms, still work make unresponsive page on other platforms.

html:

<div class="first container text-center" id="background"> </div> <div class="second container text-center" id="background"> </div> 

css:

.first-body {   background: url(../../images/mango_copy.jpg) no-repeat;   background-size: cover;   background-position: top center;   top: 250px;   z-index: 10016;   width: 800px;   height: 400px;   position: relative; } first-body:hover {   height: 400px;   background-size: 800px;   -webkit-transform: scale(1.1, 1.1);   -moz-transform: scale(1.1, 1.1);   opacity: .9;   -webkit-opacity: .9;   -moz-opacity: .9;   transition: .3s ease-in-out; } 

you can apply hover css above 980px in media

@media (min-width: 980px) {      first-body:hover{     height:400px;      background-size:800px;     -webkit-transform: scale(1.1,1.1);     -moz-transform:scale(1.1,1.1);     } } 

or override hover effect in media

@media (max-width: 980px) {     first-body:hover{        height:400px;         background-size:800px;       -webkit-transform: scale(1,1);       -moz-transform:scale(1,1);       opacity:.9;       -webkit-opacity: .9;       -moz-opacity: .9;       transition: .3s ease-in-out;     } } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -