Skip to content
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

Closed
dlzi opened this issue Feb 10, 2013 · 4 comments
Closed

Multiple captions #85

dlzi opened this issue Feb 10, 2013 · 4 comments

Comments

@dlzi
Copy link

dlzi commented Feb 10, 2013

Is it possible to have independent and multiple captions like http://iprodev.com/iview/?

@Kotheof
Copy link

Kotheof commented Feb 12, 2013

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...

@dlzi
Copy link
Author

dlzi commented Feb 12, 2013

Thanks, I'll try. If it isn't too much to ask could you show a simple example?

@dlzi
Copy link
Author

dlzi commented Feb 12, 2013

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?

@Kotheof
Copy link

Kotheof commented Feb 12, 2013

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....

@dlzi dlzi closed this as completed Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants