The example in this article describes the effect of widening when the mouse passes by jQuery. Share it with everyone for your reference, the details are as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <title>Kwicks 1.5.1 Example Page</title> <!-- IMPORTANT!!! Include the stylesheet *BEFORE* the JavaScript (necessary for Safari 3.1.1) --> <link rel="stylesheet" type="text/css" href="css/main.css" /> <script src="js/jquery-1.2.6.min.js" type="text/javascript"></script> <script src="js/jquery.easing.1.3.js" type="text/javascript"></script> <script src="js/jquery.kwicks-1.5.1.pack.js" type="text/javascript"></script> <script type="text/javascript"> $().ready(function() { $('.kwicks').kwicks({ max : 220, spacing : 5 }); }); </script> </head> <body> <ul class="kwicks horizontal" > <li id="kwick_1"></li> <li id="kwick_2"></li> <li id="kwick_3"></li> <li id="kwick_4"></li> </ul> </body> </html>
Click here for the complete example codeDownload from this site.
Readers who are interested in more jQuery related content can check out the special topics on this site: "JQuery switching effects and techniques summary", "jQuery drag effects and techniques summary", "JQuery extension skills summary", "jQuery common classic special effects summary", "jQuery animation and special effects usage summary", "jquery selector usage Summary " and "Summary of jQuery common plug-ins and usage "
I hope this article will be helpful to everyone in jQuery programming.