jQuery插件jFade实现鼠标经过的图片高亮其它变暗

今天为大家带来一款鼠标经过当前高亮其它变暗jQuery插件jFade,此款插件能实现的功能简单而且很实用,当鼠标经过图片列表或是文字列表时悬停当前高亮显示,其它图片列表变暗突出显示鼠标当前悬停。

复制代码 代码如下:




   
     
   
   
   
     


   

       

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


       


       

and add the class tag to each element:


       

           

           

           

           

           

           

           



       

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)


       

           

                   

  •                 Green
                    Blue
                    Pink
                    Orange
                    Yellow

  •            

       



       

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特效能有所帮助。

你可能感兴趣的:(jQuery插件jFade实现鼠标经过的图片高亮其它变暗)