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

  • Film Riot

    Film Riot

    16 NİSAN 2006
  • HouseholdHacker

    HouseholdHac

    6 Kasım 2007
  • TechRax

    TechRax

    21 EYLÜL 2009