Skip to content

tutorjs/milk-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milk Slider

GitHub issues GitHub forks GitHub stars

milk slider is a simple slider like a milk.

Install via npm or yarn

  
  yarn add milk-slider // yarn
  npm install milk-slider // npm
  

Please add CSS via CDN in your document HTML https://cdn.rawgit.com/tutorjs/milk-slider/cde46831/src/css/milkslider.css.

  var MILKSlider = require('milk-slider');

  MILKSlider({
    target: '.gallery',
    width: 400
  });

Install via CDN

  // CSS
  https://cdn.rawgit.com/tutorjs/milk-slider/cde46831/src/css/milkslider.css

  // Javascript
  https://cdn.rawgit.com/tutorjs/milk-slider/cde46831/src/js/milkslider.js

Getting Started

HTML

<div class="gallery">
  <img src="path/to/your/directory" alt="image">
  <img src="path/to/your/directory" alt="image">
  <img src="path/to/your/directory" alt="image">
</div>

Javascript

new MILKSlider({
  target: '.gallery',
  width: 400
})

Demo

Demo

Thanks.