微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jQuery jFlow

程序名称:jQuery jFlow

授权协议: 未知

操作系统: 跨平台

开发语言: JavaScript

jQuery jFlow 介绍

jFlow is a widget to make your content slides. One popular alternative that
exists out there is coda-slider. jFlow is super lightweight because it is only
1.9kb minified!!!.

$("#myController").jFlow({ slides: "#mySlides", width: "99%", height: "200px", duration: 400 });

Explanation:

#myController: the div where all the slide controller are nested in slides: the div where all your sliding divs are nested in (note: you can define classes for each div inside slides) width: can be specified in px or % (required) height: can be specified in px (required) duration: time in miliseconds to transition one slide (optional, default is 400)

2 divs created by jFlow as containers, you can style them to your liking

#jFlowSlide: This is the container where all the slides reside .jFlowSelected: This is the current activated controller

Special div deFinition

.jFlowPrev: Any element with this class will transition to prevIoUs slide upon clicking .jFlowNext: Any element with this class will transition to next slide upon clicking .jFlowControl: Any element inside the controlling div with this class will map to the corresponding slide

Example

`

No 1 No 2 No 3 No 4
@H_404_34@
First Slide
Second Slide
Third Slide
Fourth Slide

Prev
Next`

jQuery jFlow 官网

http://plugins.jquery.com/project/jFlow

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐