Home > Web Front-end > JS Tutorial > body text

jQuery plug-in jFade realizes that the picture passed by the mouse is highlighted and the other is darkened_jquery

WBOY
Release: 2016-05-16 16:09:35
Original
1656 people have browsed it

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.

Copy code The code is as follows:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">

   
     
   
   
   
     


   

       

jFade


       

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.



       

Portfolio Gallery



       

(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




       

Portfolio Gallery 2



       

(Fade objects in)


       

           
           
           
           
           
           
           
           
       



       

Call to Action Button



       

(give buttons some flair)


       

           
       



       

Text



       

(have subtle effects)
       


           
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in eleifend justo. Aenean a porttitor enim. Sed aliquet ullamcorper euismod. Morbi dapibus pretium mauris. Pellentesque consequat ante et magna gravida eleifend. Donec et lorem nulla. Integer dignissim nisi et lectus bibendum ornare venenatis odio venenatis. Aliquam dignissim iaculis neque, sed accumsan erat aliquam porttitor.

           
Quisque lobortis, turpis id ornare mollis, diam magna semper libero, lacinia pharetra lectus nibh eget purus. Aenean dignissim sollicitudin gravida. Suspendisse non leo at nunc tempus elementum. Curabitur vitae commodo libero. Sed erat tortor, ornare id luctus vel, ullamcorper eget lacus. Maecenas ac placerat lectus. Sed quis nunc vitae lacus dignissim interdum.

           
Nulla facilisi. In et ante tellus, quis feugiat ante. Sed et lectus id ante viverra fringilla in eget nisi. Duis sit amet augue lorem, quis luctus erat. Morbi sed diam id orci lacinia tincidunt vel auctor velit. Etiam pulvinar nibh eget ante tincidunt rhoncus. Morbi commodo eros lobortis dolor suscipit eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

       





       
   




以上就是本文的全部内容了,希望对大家熟练掌握jQuery特效能有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!