For the carousel-wrapper background you could do it like this:

   var slides = 0    // COUNT SLIDES FROM BEGINNING
     , lastPos = -1; // FIX START POSITION

   var slider = $("HERE_COMES_YOUR_CAROUSEL_WRAPPER_ID")
.carousel({
interval: 4000
})
.bind('slide', function() {
var $active = $(this).find('.active')
  , children = $active.parent().children()
  , activePos = children.index($active)
  , count = children.length;
--count; // FIX FOR INDEX
  
if ( lastPos < activePos || (lastPos === count && activePos === 0) ) {
  ++slides;
} else {
  --slides;
}
lastPos = activePos;
slider.css('background-position', slides * 50 + '% 0%');  // EDIT THIS LINE 
FOR YOUR ANIMATION
});

For me it worked !!!



Am Montag, 26. März 2012 23:24:05 UTC+2 schrieb 123gotoandplay:
>
> anyone tried it? 
>
> any tips or suggestions?
>

Reply via email to