CSS event hover for bigger picture -


i try make image gallery using bootstrap , custom css. want make if user hover on image, picture getting bigger on place. done using css have little problem regarding grid of image. when hover right image, position mess. here experiment : http://hanzoclothing.com/lookbook/chapter-iii

css:

.lookbook-item{     position: relative !important; } .lookbook-item:hover{     z-index: 5; } .lookbook-item .thumb{     opacity: 1 !important; } .lookbook-item .thumb img{     -webkit-transition: 1s ease-in-out;     transition: 0.3s ease-in-out; } .lookbook-item .thumb:hover img{     position: absolute;     min-width: 600px;     max-width: 600px;     margin-top: -40px;     margin-left: -50px; /*    top: 200%;     left: 23%;*/     z-index: 6; } 

i'd tempted use transform: scale(xxx); this. want without effecting other elements:

.lookbook-item .thumb:hover img {     /* position: absolute; */     /* min-width: 600px; */     /* max-width: 600px; */     /* margin-top: -40px; */     /* margin-left: -50px; */     z-index: 6;     transform: scale(2); } 

if want keep offset have, use following:

transform: scale(2) translate(50px, 40px);


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -