-
Notifications
You must be signed in to change notification settings - Fork 56
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
title is not shown #6
Comments
I modified the plugin to add this for my own implementation, it's not too difficult. You'd need to add in the container to hold the title when you add in all the other elements: imageTitle = $('<div id="imageTitle"></div>'), Then just update it on slide change. You can add this into the offsetSlider() function. var newTitle = items.eq(index).attr("title");
imageTitle.html(newTitle); ...aaaand style it in the css: #imageTitle {
color: #FFFFFF;
width: 100%;
text-align: center;
bottom: 8%;
left: 0;
} |
Can you please explain this in greater detail for folks like myself who don't have much experience with javascript. Thanks |
I've just committed the leecody proposal, check it out moiseevigor@1f3667a |
I think you are missing a Also, for bonus points, here is a quick way to add a dark background to the text, without changes to the markup or js: #imageTitle::first-line {
background-color: rgba(0, 0, 0, 0.8);
} I am not sure which mobile browsers support it, but it works nicely in Chrome and it won't hurt in any case. |
leecody, ware exactly to put this code? |
Cant find the offsetSlider() function |
Hello martinaglv, Thnak you. |
Hello, ramchauhan. if you do this please let me know. Thank you. |
Even though the title-tag for the link is used, the plugin doesn't show the title when displaying the image. It should make use of the title tag. In the examples the title tag is also filled, but unfortunately it doesn't trigger any action in the display.
The text was updated successfully, but these errors were encountered: