-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Multiple captions #85
Comments
Of course you can! Bx slider displays whatever is in inside in the li element. If you put an image as backround with related positon and some html with absolute position will do the trick... |
Thanks, I'll try. If it isn't too much to ask could you show a simple example? |
Great. Last question. For me to give different 'easing' to each the caption I will need to call them one by one on the custom javascript file, is that right? |
For the main caption you can change the css code inside jquery.bxslider.css: .bx-wrapper .bx-caption {
position: absolute;
bottom: 0;
left: 0;
background: #666\9;
background: rgba(80, 80, 80, 0.75);
width: 100%;
} For more captions you can try something like this: <ul id="bxslider" >
<li>
<a href="link" >
<img/>
</a>
<span class="custom-caption one">
<a >
the caption text
</a>
</span>
<span class="custom-caption two">
<a >
the caption text
</a>
</span>
</li>
</ul> css: .custom-caption{
position: absolute;
background: #000;
display: block;
}
.custom-caption.one{
bottom: 10%;
left: 10%;
}
.custom-caption.two{
bottom: 50%;
left: 50%;
} And you can add as many captions as you want.... |
Is it possible to have independent and multiple captions like http://iprodev.com/iview/?
The text was updated successfully, but these errors were encountered: