When the mouse hover over the element or move out, you can use the hover method of jquery to bind the elements two processing methods, the former for mouse hover, the latter for the mouse to move out, so according to this feature and then set the corresponding elements of the CSS properties can be easily implemented accordion layout, but there is a problem, That is, the content is hidden when the mouse is m
For you to explain the jquery animation special effects for the accordion, nonsense not to say, first look at the final implementation of the effect of the picture.
First, the realization principle analysis
The corresponding stereo diagram:
Second, HTML code analysis
1. The div with ID container is the red area in the analysis above.2. The UL with ID content is used to store all li.
Document directory
1. Unowhy
2. Helloewy
3. Djafar Inal
4. Made by Elephant
5. Engage Interactive
6. Jaboh
7. Nerve Music Store
8. Loewy Design
9. Alex Cohaniuc
10. EyeDraw
JQuery is the most popularJavaScriptThe development framework simplifies HTML document traversal, event processing, animation, and Ajax interaction, helping Web developers implement a variety of exquisite interface effects more quickly. Today, this article shows you 1
Accordion effect is the use of a higher frequency in the project, the original project has been used Easyui, near the end of the year, try to write a
CSS Styles
Copy Code code as follows:
/* CSS Document * *
Body {
margin:0 Auto;
padding:0 Auto;
font-size:9pt;
Font-family: Microsoft James Black, XXFarEastFont-Franklin, Arial, Helvetica, Verdana, Sans-serif;
}
. accordion {
padding-left
JQuery Easyui uses the (1) foldable panel layout accordion menu, jqueryeasyui
Let's take a look at the following:
The key code is as follows:
Now, the code is over. The next article will introduce jQuery Easyui (2) methods to solve ineffective dynamic loading of foldable panels
The above section describes the layout of the
Today, we're going to use the accordion in the jquery UI, which is mainly used to achieve the folding effect, more suitable for the menu, and the accordion ... Let's take a look at the screenshot of our results:
If the drag function is missing, then our work today is nothing special, here, we introduced the jquery
Simple jQuery cxMenu accordion navigation, jquerycxmenu
Version:
JQuery v1.7 +
JQuery cxMenu v1.2
Note:
The system automatically determines whether sub-navigation exists. If yes, the link is not triggered. If no sub-navigation exists, the link is triggered.
Instance PreviewHow to load JavaScript files
CSS sty
Recently I saw the teaching video has a lot of accordion effect, I also try to write, as a practice.Tomorrow I have a holiday, will go to find a job, do not know, my front-end road, can formally start.Rookie take-off opportunities are not, it is embarrassing.Purely Practice:EffectHtml:ulclass= "Wrap"> Liclass= "Checked"> span>Option 1span> Div>1Div> Li> Li> span>Option 2span> Div>2Div> Li> Li> span>Option
This article illustrates the implementation method of accordion picture display based on jquery. Share to everyone for your reference. The implementation methods are as follows:
The code runs as shown in the following illustration:
The index.html page code is as follows:
Copy Code code as follows:
NetherlandsBelgiumFranceGermanyEngland
Full Instance code click here Download the site
Version:
JQuery v1.7+
JQuery Cxmenu v1.2
Precautions:
Automatically determine if there is a child navigation, there is the display does not trigger the link, none triggers the link.
Instance PreviewLoading JavaScript files using methods CSS Style structureIn addition to the necessary property settings, other styles can be set on their own./* Swipe navigation */. menu{}. Menu > li{}. m
La Feng jquery made accordion folding menu, the effect is very good! This is the previous version of the improved version, mainly jquery code improvements
Demo diagram:
Main.js
$ (function () {
var tmp = null,
$title = $ ('. Title '),
$con = $ ('. Title > UL ');
$title. Click (function () {
$ (TMP). Children (' ul '). Slideup ().
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.