JQuery loop plugin with different effect on next and previous

Using a jQuery loop, is it possible to have different effects for the next and previous buttons? For example, press the scroll button left and the previous button disappears?

I know about the scrollHorz effect for left and right scroll.

thanks

+3
source share
2 answers

It is not possible to specify individual individual effects for the next and previous buttons without changing the source code of the plug-in.

Closest you can specify several effects in the fx options. They will be used sequentially. Example:

$('#slideDiv').cycle({ 
    fx:     'fade,scrollHorz', 
    prev:   '#prev1', 
    next:   '#next1', 
    timeout: 0 
});

, , next prev, "fade", , , "scrollHorz", "fade" ..

+3

, "" , ​​ scrollHorz, scrollVert, shuffle.

jQuery Cycle , ( ) , . "scrollHorz". , ( fwd). .

. JavaScript .

+2

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


All Articles