一个用于jQuery的轻量级水平手风琴插件。

Posted

tags:

中文标题:一个用于jQuery的轻量级水平手风琴插件。 原文标题:A lightweight horizontal accordion plugin for jQuery. 项目评级:Star:225      Fork:130 下载地址:https://github.com/nikki/LiteAccordion 详情介绍

LiteAccodion公司

LiteAccodion是一个用于jQuery的水平手风琴插件。此插件不再处于开发中,将来也不会收到任何更新

选项

以下是liteAccordion插件的默认设置:

containerWidth : 960, // fixed (px) containerHeight : 320, // fixed (px) headerWidth: 48, // fixed (px) activateOn : 'click', // click or mouseover firstSlide : 1, // displays slide (n) on page load slideSpeed : 800, // slide animation speed onTriggerSlide : function() , // callback on slide activate onSlideAnimComplete : function() , // callback on slide anim complete autoPlay : false, // automatically cycle through slides pauseOnHover : false, // pause on hover cycleSpeed : 6000, // time between slide cycles easing : 'swing', // custom easing function theme : 'basic', // basic, dark, light, or stitch rounded : false, // square or rounded corners enumerateSlides : false, // put numbers on slides linkable : false // link slides via hash

方法

以下是liteAccordion插件的方法:

play // trigger autoPlay on a stopped accordion stop // stop an accordion playing next // trigger the next slide prev // trigger the previous slide destroy // remove the accordion, destroying all event handlers and styles (unstyled html content will remain) debug // returns a debug object

所有这些方法都是可链接的(即,它们返回原始DOM对象),调试方法除外。要调用方法,请使用:

$('#yourdiv').liteAccordion('play');

要链接方法:

$('#yourdiv').liteAccordion('next').liteAccordion('next');

变更日志

v2.2-2013年1月21日

v2.1.1-2012年9月10日

v2.1-2012年8月19日

v2.0.3-2012年8月18日

v2.0.2-2012年1月23日

v2.0.1-2011年11月23日

v2.0-2011年11月16日

v1.1.3-2011年4月6日

1.1版、1.2版-2011年3月27日

v1.1-2011年3月21日

v1.0-2011年3月2日

不支持/无法修复