Skip to content

A standalone JavaScript micro-library that builds a slider quickly. No jQuery or css required.

Notifications You must be signed in to change notification settings

shaunzeng/tinyslider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

tinyslider.js

A standalone JavaScript library that builds a slider. No jQuery or css required.

Follow the html structure below to initialize tinySlider. You can have as many sliders as you want. The sliders will adjust itself to fit in your outter div width.

<body>
  <div class="tinyslider">
    <div>
      //Your first slider content
    </div>
    <div>
      //Your second slider content
    </div>
    <div>
      //Your third slider content"
    </div>
    
    ...
  </div>
</body>

<script>
  tinyslider.init();
</script>

init options

tinyslider.init() takes a few options

tinyslider.init({
  themeColor:"" // a color, type : string
  onClick: function(){}, // a callback on Click
});

About

A standalone JavaScript micro-library that builds a slider quickly. No jQuery or css required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published