Vertical sliding accordion Effect Based on jQuery, jquery accordion

Source: Internet
Author: User
Tags sample html code jquery accordion

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>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.