0
|
1 |
/* start for slider */ |
|
2 |
jQuery(function(){ |
|
3 |
|
|
4 |
/* for hover effekt on images */ |
|
5 |
jQuery('.lightbox-image').prepend('<span></span>').hover(function(){jQuery(this).find('img').stop().animate({opacity:.5})},function(){jQuery(this).find('img').stop().animate({opacity:1})}) |
|
6 |
|
|
7 |
/* for list */ |
|
8 |
jQuery('.list-1 li a').prepend('<span><span></span></span>') |
|
9 |
|
|
10 |
/* for slider */ |
|
11 |
jQuery('#slides1').slides({ |
|
12 |
effect: 'fade', |
|
13 |
fadeSpeed:1000, |
|
14 |
preload: true, |
|
15 |
play: 6000, |
|
16 |
pause: 6000, |
|
17 |
generateNextPrev: true, |
|
18 |
generatePagination: false, |
|
19 |
crossfade: true, |
|
20 |
hoverPause: true, |
|
21 |
animationStart: function(current){ |
|
22 |
jQuery('.caption').animate({opacity:0}).css({display:'none'}); |
|
23 |
if (window.console && console.log) { |
|
24 |
console.log('animationStart on slide: ', current); |
|
25 |
}; |
|
26 |
}, |
|
27 |
animationComplete: function(current){ |
|
28 |
jQuery('.caption').animate({opacity:1}).css({display:'block'}); |
|
29 |
if (window.console && console.log) { |
|
30 |
console.log('animationComplete on slide: ', current); |
|
31 |
}; |
|
32 |
}, |
|
33 |
slidesLoaded: function() { |
|
34 |
jQuery('.caption').animate({opacity:1}).css({display:'block'}); |
|
35 |
} |
|
36 |
}); |
|
37 |
|
|
38 |
|
|
39 |
}); |