SORU
30 Mayıs 2010, Pazar


Jquery: Uyku veya gecikme?

nesne yukarı taşımak istiyorum, 1000ms , gecikme sakladılar

kod:

$("#test").animate({"top":"-=80px"},1500)
      .animate({"top":"-=0px"},1000)
      .animate({"opacity":"0"},500);

kullanıyorum ".({"top":"-=0px"},1000)" gecikme uygulamak için iyi değil. animasyon

istiyorum:

$("#test").animate({"top":"-=80px"},1500)
      .sleep(1000)
      .animate({"opacity":"0"},500);

herhangi bir fikir?

CEVAP
30 Mayıs 2010, Pazar


Nasıl .delay() ?

http://api.jquery.com/delay/

$("#test").animate({"top":"-=80px"},1500)
          .delay(1000)
          .animate({"opacity":"0"},500);

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • captainpuppys2000

    captainpuppy

    20 HAZİRAN 2013
  • jkimisyellow

    jkimisyellow

    6 Mayıs 2009
  • REK Roth Productions

    REK Roth Pro

    8 Ocak 2011