Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Нужно что бы слайдер прокручивался по кругу (https://javascript.ru/forum/jquery/18413-nuzhno-chto-slajjder-prokruchivalsya-po-krugu.html)

sembler 29.06.2011 17:39

Нужно что бы слайдер прокручивался по кругу
 
Есть такой слайдер - http://www.jcoverflip.com/demo
Мне нужно что бы он по кругу крутился, как это можно сделать?
Помогите пожалуйста бедному студенту :( :help: :help:
Как это можно сделать...

У них там такой код

jQuery( document ).ready( function(){
jQuery( '#flip' ).jcoverflip({
current: 1,
beforeCss: function( el, container, offset ){
return [
$.jcoverflip.animationElement( el, { left: ( container.width( )/2 - 470 - 550*offset + 40*offset )+'px', bottom: '130px' }, { } ),
$.jcoverflip.animationElement( el.find( 'img' ), { width: Math.max(20,250-50*offset*offset) + 'px' }, {} )
];
},
afterCss: function( el, container, offset ){
return [
$.jcoverflip.animationElement( el, { left: ( container.width( )/2 + 220 + 550*offset )+'px', bottom: '130px' }, { } ),
$.jcoverflip.animationElement( el.find( 'img' ), { width: Math.max(20,250-50*offset*offset) + 'px' }, {} )
];
},
currentCss: function( el, container ){
return [
$.jcoverflip.animationElement( el, { left: ( container.width( )/2 - 235 )+'px', bottom: 0 }, { } ),
$.jcoverflip.animationElement( el.find( 'img' ), { width: '470px' }, { } )
];
},
change: function(event, ui){
jQuery('#scrollbar').slider('value', ui.to*32.6);
}
});


Часовой пояс GMT +3, время: 17:02.