transparent.png と呼ばれる各画像を、現在のように同時にではなく、3 回連続して脈動 (またはフェードイン、フェードアウト) する必要があります。
transparent.png は各画像の上に配置され、フェードアウト効果を与えます。
私が使う:
- jQuery 1.7.2
- jQuery UI 1.8.21
これが私のコードです:
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>