2

I have fade effect structure. With the following:

  <img src='firstStar.jpg' alt='star image' id='firstStar' />

    var loopImages = function(){

         $('#firstStar').fadeIn(1500, function(){

                   $('#firstStar').fadeOut(1500, loopImages);           
         });
    }
    loopImages();

It's working. But i want, this effect get left to right. Is it possible?

Slaythern Aareonna
  • 353
  • 3
  • 9
  • 25

3 Answers3

4

You can try with this, I used to work with it on my previous project.

http://jonobr1.github.com/diagonalFade/

Hope it fits your needs.

Regards.

semir.babajic
  • 731
  • 3
  • 9
3

You can try something like this with animate

$(document).ready(function(){
    $("#firstStar").animate({left:200, opacity:"show"}, 1500);
});

Make sure the div is initially hidden (style="display:none;").

Alessandro Minoccheri
  • 35,521
  • 22
  • 122
  • 171
0

By 'But i want, this effect get left to right', do you mean to refer this one?

http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/wordpress-plugins/oik-nivo-slider/nivo-settings/nivo-slider-transition-effects/nivo-slider-effectslicedownright/

If yes, then you can use the effect called as sliceDownRight.

Vikram
  • 3,996
  • 8
  • 37
  • 58