Efek mengalahkan (berdenyut Effect) - API jQuery UI
kategori
pemakaian
Keterangan: mengalahkan efek (berdenyut Effect) dengan mengalahkan menyembunyikan atau menampilkan elemen.
pulsate
参数 | 类型 | 描述 | 默认值 |
---|---|---|---|
times | Integer | 元素跳动的次数。当隐藏或显示时,会添加半个跳动。 | 5 |
contoh
Menggunakan efek jitter (berdenyut Effect) beralih div.
<! DOCTYPE html> <Html lang = "en"> <Head> <Meta charset = "utf-8"> <Title> mengalahkan efek (berdenyut Effect) Demo </ title> <Link rel = "stylesheet" href = "// code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <Gaya> #toggle { width: 100px; height: 100px; background: # ccc; } </ Style> <Script src = "// code.jquery.com/jquery-1.10.2.js"> </ script> <Script src = "// code.jquery.com/ui/1.10.4/jquery-ui.js"> </ script> </ Kepala> <Body> <P> Klik di mana saja untuk beralih. </ P> <Div id = "beralih"> </ div> <Script> $ (Dokumen) .Klik (function () { $ ( "#toggle") .toggle ( "Berdenyut"); }); </ Script> </ Body> </ Html>