Today we bring you jFade, a jQuery plug-in that darkens the current highlight when the mouse passes over it. The function that this plug-in can implement is simple and very practical. When the mouse passes over the image list or text list, the current highlight will be displayed. , the list of other images dims to highlight the one currently hovered over by the mouse.
jFade is a simple jquery plug-in that lets you highlight items on your website. Not only are customizable fades possible, but easy control of surrounding elements makes your most important content stand out.
(Fade adjoining objects out)
To use default settings just add the function
<script type="text/javascript"> <br /><br>
$().ready(function() {<br /><br>
$('.jfade_image').jfade();<br /><br>
}); <br /><br>
</script>
and add the class tag to each element:
<img src="images/card02.jpg" class="jfade_image"/><br /><br>
<img src="images/card04.jpg" class="jfade_image"/><br /><br>
<img src="images/card09.jpg" class="jfade_image"/><br /><br>
<img src="images/card13.jpg" class="jfade_image"/><br /><br>
<img src="images/card14.jpg" class="jfade_image"/><br /><br>
<img src="images/card15.jpg" class="jfade_image"/><br /><br>
<img src="images/card16.jpg" class="jfade_image"/><br /><br>
<img src="images/card17.jpg" class="jfade_image"/>
Custom settings are easily set and explained in the help doc
(Fade objects in)
(give buttons some flair)
(have subtle effects)
以上就是本文的全部内容了,希望对大家熟练掌握jQuery特效能有所帮助。