글
Changelog - fixed animation forward flowing and backward timing per tab to be consistent
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!!!.
Demo
Download
Usage
$("#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 class 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
<script language="javascript">
$(document).ready(function(){
$("#myController").jFlow({
slides: "#mySlides",
width: "99%",
height: "200px",
duration: 400
});
});
</script> <div id="myController">
<span class="jFlowControl">No 1 </span>
<span class="jFlowControl">No 2 </span>
<span class="jFlowControl">No 3 </span>
<span class="jFlowControl">No 4 </span>
</div> <div id="mySlides">
<div>First Slide</div>
<div>Second Slide </div>
<div>Third Slide </div>
<div>Fourth Slide </div>
</div> <span class="jFlowPrev">Prev</span>
<span class="jFlowNext">Next</span>
'JS > jquery' 카테고리의 다른 글
Jquery Reference SIte (0) | 2008.11.08 |
---|---|
jDialog 1.1 for jQuery - An AJAX modal creator (0) | 2008.11.08 |
Unobtrusive, cross-browser method to add icons to links (0) | 2008.11.08 |
jHelperTip 1.0 - The Multi-Use Tooltip for jQuery (0) | 2008.11.08 |
jContext 1.0 - The ultra-lightweight right click context menu for jQuery (0) | 2008.11.08 |
jSize 1.0 - a window slider/resizer wonder for jQuery (0) | 2008.11.08 |
jFade 1.0 - color fader for jQuery (0) | 2008.11.08 |
JQuery Download (0) | 2008.11.08 |
MouseOver In Fade (0) | 2008.11.02 |
MouseOver Preview (0) | 2008.11.02 |
RECENT COMMENT