0b61b47ee0eceb670e3b94a6f099d5caa8e828a6
[edumed.git] / catalogue / static / catalogue / js / carousel.js
1 (function($){
2 $(function() {
3
4
5 $.fn.cycle.transitions.rgrowY = function($cont, $slides, opts) {
6         opts.before.push(function(curr, next, opts) {
7                 $.fn.cycle.commonReset(curr,next,opts,true,false,true);
8                 opts.cssBefore.top = this.cycleH/2;
9                 opts.animIn.top = 0;
10                 opts.animIn.height = this.cycleH;
11                 opts.animOut.top = this.cycleH/2;
12         opts.animOut.height = 0;
13         });
14         opts.cssBefore.height = 0;
15         opts.cssBefore.left = 0;
16 };
17
18 $("#catalogue-carousel-links").cycle({
19     fx: 'rgrowY',
20     sync:false,
21     easeIn: 'easeInQuad',
22     easeOut: 'easeOutQuad',
23     speed: 1000,
24     
25 });
26
27
28 });
29 })($);