Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
Created September 27, 2012 21:21
Show Gist options
  • Save gaboesquivel/3796542 to your computer and use it in GitHub Desktop.
Save gaboesquivel/3796542 to your computer and use it in GitHub Desktop.
cycle
cycle_rtc = (e) ->
$(e).cycle
fx: "fade"
speed: 'fast'
timeout: 0
next: '.next'
prev: '.prev'
pager: '#rtc_pager ul'
pagerEvent: "click"
after: on_after
pagerAnchorBuilder: (idx, slide) ->
title = $(slide).data("pager-title")
return "<li class='pager-step step#{(idx+1)}' ><span class='title'><a href='#''>#{title}</a></li>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment