Skip to content

jsvgoncalves/margin-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

margin-slider

DOI

Basic HTML5 slider done with margin-left and jQuery animate.

Installation

  1. Download the code.
  2. Copy both js/marginslider.js and css/marginslider.css to your project.
  3. Add classes to your marginslider, marginslider_container, left-arrow and right-arrow appropriately or configure the MarginSlider.init().
  4. Call the slider with MarginSlider.init( options ); (I recommend only calling it after all the DOM has loaded, you can do so with $(window).load(function(){ .. });.
  5. That's it!

More information can be found at http://jsvgoncalves.github.io/margin-slider