I am trying to set up a responsive image gallery using the excellent jQuery plugin of cycle 2. Both portrait and landscape images will be presented in the gallery.
I am using the Centered Slides parameter (Cycle2 Center plugin: http://jquery.malsup.com/cycle2/demo/center.php ) and this seems to cause problems in Webkit browsers (try resizing the browser window if this is not obvious at first!)
http://goo.gl/NFFZk
The green background is a loop container.
Without adding additional center parameters (data-cycle-center-horz = true data-cycle-center-vert = true) everything works fine, see
http://goo.gl/p76wi
I cannot decide what causes the problems with the centered version.
The CSS code on the images is pretty minimal:
.cycle-slideshow img { max-height: 100%; max-width: 100%; }
The containing CSS element is here
.cycle-slideshow { background: green; display: block; position:absolute; height:auto; bottom:0; top:0; left:0; right:0; margin:20px auto; padding:0; width:80%; }
Thanks so much for any help!
source share