-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anyway to set the caption below the image? #176
Comments
+1 |
Figured out how to do this with css. It not perfect - I haven't figured out how to gracefully deal with 2 line captions but it's close enough to what I need. |
i created a quick and dirty work around.
$('#image-slider').append("<div class='bjqs-alt-caption'></div>");
var conf_alt_captions = function() {
$.each($slides, function (key, slide) {
var caption = $(slide).children('img:first-child').attr('title');
// Account for images wrapped in links
if(!caption){
caption = $(slide).children('a').find('img:first-child').attr('title');
}
if (caption) {
caption = $('<p class="bjqs-caption alt ">' + caption + '</p>');
$(".bjqs-alt-caption").append(caption); // caption gets added to the costum div-container
}
});
$(".alt").eq(state.currentindex).show(); //show the first element
};
// fade out alt caption
$(".alt").eq(state.currentindex).fadeOut(settings.aniduration);
$(".alt").eq(state.nextindex).fadeIn(settings.aniduration);
#image-slider{ margin-bottom: 3.5em; }
p.bjqs-caption.alt {display:none; bottom: -3.5em; height: 3.5em; background-color: #FFFFFF; text-align: center; } check it out here: http://skulptour.eu/posts/stander-und-sockel-fur-skulpturen/ |
I've been looking for a slider that meets all of my requirements for a while and this on is as close as I've come to finding one. I really appreciate the basic concept on a simple slider that I can customize to meet my needs. The one thing I haven't bee able to accomplish is have the caption below the image. Setting the bottom to a negative number pushes the caption down but it's not visible (since it's contained within the image li?) Z-index doesn't seem to help either. If this isn't possible right now adding this feature would make this meet all of my slider requirements.
The text was updated successfully, but these errors were encountered: