Skip to content

Commit

Permalink
Example of jumping straight to Nth cover
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderlee committed May 23, 2015
1 parent 7c3fce6 commit bbf8d06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
$('.coverflow').coverflow('index', -1);
});

$('#goto6').click(function() {
$('.coverflow').coverflow('index', 6-1); // zero-based index!
});

/* CD covers */

if ($.fn.reflect) {
Expand Down Expand Up @@ -158,6 +162,7 @@ <h2>Examples</h2>

<h3>Alphabet selector</h3>
<button id="first">first</button>
<button id="goto6">6</button>
<button id="last">last</button>
<div class="coverflow">
<div class="cover">A</div>
Expand Down

0 comments on commit bbf8d06

Please sign in to comment.