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

  • midomansour

    midomansour

    19 EYLÜL 2009
  • mobilenet.cz

    mobilenet.cz

    26 NİSAN 2008
  • Study with Substance P

    Study with S

    31 Mayıs 2008