1
我需要按順序將每個圖像稱爲transparent.png pulsate(或淡入淡出),依次排列3次,與現在不同。使元素脈動序列
transparent.png位於每張圖片的頂部,並提供淡出效果。
我用:
- 的jQuery 1.7.2
- jQuery UI的21年1月8日
這裏是我的代碼:
jQuery('.transparent').each(function(index) {
jQuery(this).effect("pulsate", {times:3}, 1000);
});
<div id="content">
<a class="frontimage projectleft" href="?folder=/sculptures">
<img width="200" title="" alt="" src="0054_46.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1; display: block;">
</a>
<a class="frontimage projectleft" href="?folder=/furniture">
<img width="200" title="" alt="" src="0076_20.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1;">
</a>
<a class="frontimage projectright" href="?folder=/paintings">
<img width="200" title="" alt="" src="156_52.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1;">
</a>
<a class="frontimage projectleft" href="?folder=/sculptures">
<img width="200" title="" alt="" src="174_36.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1;">
</a>
<a class="frontimage projectleft" href="?folder=/furniture">
<img width="200" title="" alt="" src="276_1.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1;">
</a>
<a class="frontimage projectright" href="?folder=/paintings">
<img width="200" title="" alt="" src="290_200076-01.jpg">
<img width="200" title="" alt="" src="transparent.png" class="transparent" style="opacity: 1;">
</a>
</div>
它很棒!謝謝 – Cudos