gallerie mit zoom
by marusti
HTML
<div class="flexcontainer">
<div class="flexitem"><img class="zoom" src="https://unsplash.it/200/150" /></div>
<div class="flexitem"><img src="https://unsplash.it/200/150" /></div>
<div class="flexitem"><img src="https://unsplash.it/200/150" /></div>
<div class="flexitem"><img src="https://unsplash.it/200/150" /></div>
<div class="flexitem"><img src="https://unsplash.it/200/150" /></div>
<div class="flexitem"><img src="https://unsplash.it/200/150" /></div>
</div>
CSS
.flexcontainer {
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
/* space-around, stretch */
-webkit-align-content: flex-end;
align-content: flex-end;
}
.flexitem {
width: 200px;
height: 150px;
margin: 5px;
}
img.zoom {
transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-webkit-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
}
img.zoom:hover {
cursor: zoom-in;
cursor: -moz-zoom-in;
cursor: -webkit-zoom-in;
transform: scale(1.5);
-moz-transform: scale(1.5);
-webkit-transform: scale(1.5);
-o-transform: scale(1.5);
-ms-transform: scale(1.5);
overflow:hidden
}