Before the Mu class online has practiced the accordion effect, but the teacher uses jquery simple two or three line realizes, today oneself uses the JS practice the effect *{padding:0;margin:0;list-style:none} #divbox { width:1000px;} ul{ width:1000px; height:300px;} UL li{ height:300px; float:left;/* width:100px; */}ul li a{ text-decoration:none; Color: #666; width:100px; height:300px; line-height:300px; Text-a
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
Today, let's look at an accordion effect triggered by hover. When the mouse hover is used, the image width is changed and the animation is implemented with transition, as shown in. You can also go to my codepen to edit and download my favorites online.
Thanks to TheCodePlayer for its images and inspiration.
Let's take a look at html. We use ul and li to deploy the case. We need an image box and an image description box.
KungFu Panda
Toy Stor
The following is a simple accordion menu ,:
Click B to compress the C list, and click C to change the style of its own and its parent node B. Different styles are changed during suspension.
First look at the page code, nesting of the list:
B CB C
Css code, mainly set the background color and the Left Border style of the sub-menu, set the floating and selected style, and start to set the sub-menu not to display (click through js settings and then
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 style structure
You can set other styles unless necessary.
/* Slide Navigation */. menu {}. menu> li {}. menu> li. selected {}/* selected
This example is used to determine the radio button status to achieve the folding effect. The main application is the sibling element selector. Note that this sibling element selector only selects the sibling element behind it. css3 has no response selector for the sibling element at the same level. Then the application is combined: before and transition to achieve the switching of the front icon and the stretching animation of the height. A specific value must be set for the height extension cha
I think it is interesting to write this game this week.
Accordion: Click the first-level menu, and the second-level menu is displayed dynamically. Click the first-level menu again to scale back the second-level menu;
The implementation method is as follows:
First, use CSS and HTML to plan nine boxes, of which 1st, 4, and 7 are relatively large and serve as our first-level meal orders. Other small-sized orders are used for secondary meals.
Nex
After reading the JS video tutorial of the wonderful class, we can understand the implementation principles of the tabs after the second section is pushed before the class,
That is, the classname of the clicked menu element is empty, and then only the classname is added to the clicked current element;
The tab TAB works the same way as the accordion.
Purpose
I haven't written anything for a long time. In order to earn a click rate, I put the recently obtained outLook menu made with the Accordion control on the blog, filling in words.
Image
Not to mention anything.
The above is the main interface used on the workflow platform, which can basically achieve the effect.
Code
Front-end
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Type = "text/css"/>
In Zhao yazhi _ AndroidUI_Android, The listview can be scaled to simulate the accordion effect (static) and androidlistview
The most recent apps with a name card. The customer of the name card holder needs to make a foldable scaling effect, which is really a great deal of effort ~~~ Let's not talk about anything ~~
Package com. cards. activity; import java. util. arrayList; import java. util. hashMap; import java. util. list; import java. util. map
Download the source code. After checking the source code, a drop-down is found to have a good effect. We found that accordion was used, and we pulled it in. During the operation, we found the 'sys 'undefined error, after searching, you will find that you still need to go to the Web. config.
You need to add this code between
The title Text of the Flex accordion component is left by default. You can center the header text by setting the headerstylename attribute, and set the font style.
1
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 10 very cool applications.JQueryEnjoy the
In the process of doing development, we often use the folding panel. So let's see how the folding panel is actually used.Don't say much nonsense.The code sticks down:The results of the operation are as follows: Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. mui-Folding Panel Effect accordion
The effect of the accordion is as follows. For details, refer to the Code:Html codeCopy codeThe Code is as follows:Var heads = document. querySelectorAll (". first-level ");Function headClick (event ){Var target = EventUtil. getTarget (event );ToggleDisplay (target. parentNode. querySelector ("ul "));}For (var I = 0; I EventUtil. addHandler (heads [I], "click", headClick );}Window. onunload = function (){For (var I = 0; I EventUtil. removeHandler (hea
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.