L
L
lucifer_jr2018-07-08 12:48:59
Slider
lucifer_jr, 2018-07-08 12:48:59

How to make a slider for a table?

How to make a slider for a table so that it looks like a slider for prices here at i-speedservise.ru? I tried many plugins, but they are mostly for sheets and divs. And the table structure is essentially different. I made an animated transition, but this does not suit me

var phoneIsChecked = "phone0";
        var prevPhone = "";
        var sharp = '#';

        $('input[type=radio][name=phone]').change(function() {
            prevPhone = phoneIsChecked;
            phoneIsChecked = this.value;

            $(sharp + prevPhone).css({opacity: 1}).animate({opacity: 0, left: "-250px"}, 800);
            $(sharp + phoneIsChecked).css({opacity: 0}).animate({opacity: 1.0, left: "250px"}, 800);
        });
        $(document).ready(function () {
            $(sharp + phoneIsChecked).css({'opacity': '1',
                                            'left' : '250px',
            });
        })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasyl Boyko, 2018-07-08
@lucifer_jr

the example uses a regular slider with navigation - swiper
I advise you to look for slick on the Slider Syncing page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question