Cycle plugin dynamic goto
I'm trying to connect my Wordpress menu to a cycle slideshow, by hovering a menu item 1 the slideshow need to go to slide #1. The code so far:
- $('.showcase div').cycle({
- fx: 'fade',
- speed: 100,
- startingSlide: 0
- });
- $('.portfolio-menu ul li').each(function(i) {
- var i=i+1-1 // slide are starting with 0
- $(this).attr('rel',i) // adding id to the links
- });
- $('.portfolio-menu ul li').hover(function() {
- $(this).addClass('hover'); // adding hover class
- var id = $(this).attr('rel'); // getting id
- $('.showcase div').cycle(id); // goto id
- return false
-
- }, function() {
- $(this).removeClass('hover')
- });
But i got this error:
[cycle] unknown transition: 0 ; slideshow terminating
[cycle] unknown transition: 1 ; slideshow terminating