Skip to content

Instantly share code, notes, and snippets.

@artieziff
Created July 2, 2013 22:03
Show Gist options
  • Save artieziff/5913637 to your computer and use it in GitHub Desktop.
Save artieziff/5913637 to your computer and use it in GitHub Desktop.

###JQUERY Cycler Custom Titles

var titles = ['Features', 'Specifications'];

$(function() {
    $('#bContent').cycle({
        fx: 'scrollHorz',
        speed: 300,
        timeout:     0,
        pager:      '#bNav',
        pagerEvent: 'click',
        pagerAnchorBuilder: function (index) {
            return '<a href="#"><p>' + titles[index] + '</p></a>';
        }

    });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment