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

  • Disney Pets and Animals

    Disney Pets

    29 ŞUBAT 2012
  • International Secret Agents Concerts

    Internationa

    2 Aralık 2008
  • paulandstorm

    paulandstorm

    4 EYLÜL 2006