arrow & image CSS suggestion
-
Hi, and great job, simple, easy, beautifull!!
Following code fit arrows (As i see in your plugin icon) and change curtain background and image border… if you like it!curtain background:
#ggbl_lightbox { width: 100%; height: 100%; position: absolute; z-index:10000; background: rgba(52, 52, 52, 0.8); left: 0; top: 0; color: #fff; }
img border and dimension:
#ggbl_slider img { display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 80vw; max-height: 80vh; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.6); border-radius: 5px; border: 10px solid rgba(255, 255, 255, 1); }
arrows:
.ggbl_prev, .ggbl_next { border: solid rgba(255, 255, 255, 0.6); border-width: 0 5px 5px 0; position: absolute; display: block; padding: 10px; } .ggbl_prev { left: 10px; transform: rotate(135deg); -webkit-transform: rotate(135deg); transition: border ease .2s; } .ggbl_next { right: 10px; transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transition: border ease .2s; } .ggbl_prev:hover { border-color: rgba(255, 255, 255, 1); } .ggbl_next:hover { border-color: rgba(255, 255, 255, 1); }
close button:
.ggbl_close:before, .ggbl_close:after { position: absolute; left: 15px; content: ' '; height: 33px; width: 5px; background-color: #fff; }
Last thing, it will be nice to have greater arrow click area to simplify mobile experience… thank you to consider those options. Best’s, Francesco.
PS: I do not see my captions, is that normal?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘arrow & image CSS suggestion’ is closed to new replies.