Vertical sliding accordion Effect Based on jQuery, jquery accordion
Today we will share with you a beautiful and flexible verticalJQueryAccordion effect. The main idea is to expand click and display more information on the accordion. Other content fragments will become less transparent. When you use a navigation arrow to navigate to the next clip, the new clip slides from the top or bottom.
Download the demo plug-in
Sample HTML code:
<div id="va-accordion" class="va-container"> <div class="va-nav"> <span class="va-nav-prev">Previous</span> <span class="va-nav-next">Next</span> </div> <div class="va-wrapper"> <div class="va-slice va-slice-1">
JavaScript sample code:
$('#va-accordion').vaccordion({ accordionW : $(window).width(), accordionH : $(window).height(), visibleSlices : 5, expandedHeight : 450, animOpacity : 0.1, contentAnimSpeed: 100});
Articles you may be interested in
- 10 useful results in Web development [Source Code download]
- Excellent jQuery Ajax paging plug-ins and tutorials carefully selected
- 12 amazing creative 404 error page Designs
- Let the website get started! 12 excellent jQuery animation plug-ins
- Amazing 8 HTML5 & JavaScript Special Effects
Link to this article: learning the vertical sliding accordion Effect Based on jQuery
Source: Dream sky ◆ focus on front-end development technology ◆ share web design resources
High-score jquery accordion effect implementation code
$ ("# TopBox li"). toggle (function (){
$ (This). find ("ul"). show ();
}, Function (){
$ (This). find ("ul"). hide ();
});
Simple jquery vertical accordion menu Effects
<! Doctype html>
<Htmllang = "en">
<Head>
<Metacharset = "UTF-8"/>
<Title> jQuery UI Accordion-Default functionality </title>
<Linkrel = "stylesheet" href = "code.jquery.com/..ui.css"/>
<Scriptsrc = "code.jquery.com/jquery-1.9.1.js"> </script>
<Scriptsrc = "code.jquery.com/ui/1.10.2/jquery-ui.js"> </script>
<Linkrel = "stylesheet" href = "/resources/demos/style.css"/>
<Script>
$ (Function (){
$ ("# Accordion"). accordion ();
});
</Script>
</Head>
<Body>
<Divid = "accordion">
<H3> Section 1 <Div>
<P>
Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
Ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
Amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
Odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
</P>
</Div>
<H3> Section 2 <Div>
<P>
... The remaining full text>