How can I get a jquery slideshow plugin that will change multiple divs?

I am new to jquery and I have a little problem.

I need to make one div as the main slideshow. It seems simple enough.

However, I would like the other slideshow div to change as follows (containing some text).

Thus, the path of change will be as follows:

div 1 change, change div 2, div 1 change, div 2 change,

Etc.

Where would I start if I wanted to complete this task before the end of the day (I think I spend the weekend reading about javascript and jquery)?

+3
source share
2 answers

jQuery Cycle Plugin, - :

    var slide1 = $('.slideshow1');
    var slide2 = $('.slideshow2');
    slide1.cycle({
        after:function(){
            slide1.cycle('pause');
            slide2.cycle('resume');
        }
    });
    slide2.cycle({
        after:function(){
            slide2.cycle('pause');
            slide1.cycle('resume');
        }
    }).cycle('pause');

, , - .

+2

, jQuery Cycle ( ) , . , , - .

+1

Source: https://habr.com/ru/post/1730596/


All Articles