Skip to content
/ bose Public
forked from im4aLL/bose

A div background slider using jQuery

Notifications You must be signed in to change notification settings

felipeita/bose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bose Slider

###bose.slider.js ####Bose - jQuery DIV background Slider

Slider doesn't require any css. Controls in below is completely external and slider can suite into any container and image will auto fit! Good luck.

  1. div or element background slider
  2. can fit to any container whatever the image size is
  3. external controls
  4. play, pause, next, prev controls
  5. numeric pagination
  6. thumbnail pagination with text and description
  7. able to preload images into broswer cache
  8. callbacks
  9. need more? email to [email protected]

Usage

<script src="bose.slider.min.js">

Demo

http://habibhadi.com/demo/jquery-div-background-slider/

$("selector").bose({
	images : [ "imagePath_1", "imagePath_2", "imagePath_3"]
});

###External Controls

$('.play').click(function(){
	$(".bose").bose('play');
});

$('.pause').click(function(){
	$(".bose").bose('pause');
});

$('.previous').click(function(){
	$(".bose").bose('previous');
});

$('.next').click(function(){
	$(".bose").bose('next');
});

###Options:

images       : [ "http://lorempixel.com/960/500/sports", "http://lorempixel.com/960/500/fashion", "http://lorempixel.com/960/500/nature"],
imageTitles  : [
	['Title 1', 'Description one here'],
	['Title 2', 'Description two here'],
	['Title 3', 'Description three here']
],
wrapClass    : '',
sliderClass  : '',
holderClass  : '',
startIndex   : 0,
transition   : 'fade',
timeout      : 5, // 5 sec
duration     : 2, // 2 sec
pagination   : { show : boolean(true/false), container : selector, text : boolean(true/false) },
thumbs       : { show : boolean(true/false), container : selector, dimension : { width : 100, height: 60 }, text : boolean(true/false) },
onComplete   : function() {},
onSlideStart : function() {},
onSlideEnd   : function() {},
onPause      : function() {},
autofit      : true // if false then background image will be cover

About

A div background slider using jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.2%
  • HTML 21.2%
  • CSS 4.6%