javascript - Gallery images overflow to left -
i working on carousel - gallery viewer website , have problems elements in it. images @ bottom overflowing left. have set overflow property hidden not seem work in side. in addition, images not affected property margin-right reason, margin left.
here demo of image viewer: http://codepen.io/anon/pen/xbgdwo
this code using image items. use margin-right show not working properly.
.slider-item img { width: 100%; margin-left: 5px; margin-right: 5px; overflow: hidden; @include transition('all .2s ease-in-out'); } .slider-item:hover { img { @include transform(scale(1.1)); } }
i appreciate if have @ it. have no idea fix it.
thanks in advance.
you don't need have overflow:hidden
on image itself, containing element - have.
the effect after works fine, have issue margin
- have put on img when should on parent (.slick-slide
).
i have forked codepen here , fixed issue, added red background img container can see changes, code still messy gets job done. continue refine code in same pen.
Comments
Post a Comment