Coder Social home page Coder Social logo

Getting Creative about bxslider-3 HOT 5 OPEN

stevenwanderski avatar stevenwanderski commented on July 19, 2024
Getting Creative

from bxslider-3.

Comments (5)

stevenwanderski avatar stevenwanderski commented on July 19, 2024

Since the plugin is flexible, there many ways to achieve this. Here is one way:

HTML:

<ul id="main-slider">
    <li>slide 1</li>
    <li>slide 2</li>
    <li>slide 3</li>
    <li>slide 4</li>
</ul>

<ul id="thumb-slider">
    <li><a href="" index="0"><img src="image1.jpg" /></a></li>
    <li><a href="" index="1"><img src="image2.jpg" /></a></li>
    <li><a href="" index="2"><img src="image3.jpg" /></a></li>
    <li><a href="" index="3"><img src="image4.jpg" /></a></li>
</ul>

jQuery:

$(function(){
    
    var main_slider = $('#main-slider').bxSlider({
        controls: false
    });

    var thumbs_slider = $('#thumb-slider').bxSlider({
        displaySlideQty: 3,
        moveSlideQty: 3
    });
    
    $('#thumb-slider a').click(function(event) {
        var index = $(this).attr('index');
        main_slider.goToSlide(index);
        return false;
    });
    
});

As I said, there are many different ways to do this - let me know how it works out for you!

from bxslider-3.

markpopkes avatar markpopkes commented on July 19, 2024

That worked pretty good! Thank you for the help! There is one issue, however — If you set the main slider to "auto slide", there needs to be a way to connect the current slide with the associated thumbnail image. I was trying to utilize the public functions, but there is not much documentation on how to implement that.

Again, I'm new to javascript development so any ideas would be helpful!

from bxslider-3.

markpopkes avatar markpopkes commented on July 19, 2024

Oops. Didn't mean to "close" this.

from bxslider-3.

neojohan avatar neojohan commented on July 19, 2024

Hello any fix for this. I also experience this problem once I click the thumb the current slide doesn't change but refreshes the current page

from bxslider-3.

WernerLouw avatar WernerLouw commented on July 19, 2024

Hi there. If I use the sample above, the thumbnail goes full width. Is there a fix for this? Thanks!

from bxslider-3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.