0.0.0 • Published 8 years ago
@baianat/veer v0.0.0
Veer
A beautiful responsive carousel.
Key Features
- Built using ES6 classes.
- Lightweight.
- Easy customizing.
- Support SVG out of the box.
- Infinity scroll.
- Center mode.
- Fully responsive.
Example
Getting Started
Install
First step is to install it using yarn or npm
npm install @baianat/veer
# or use yarn
yarn add @baianat/veerInclude necessary files
<head>
  <link rel="stylesheet" href="dist/css/veer.css">
</head>
<body>
    ...
    <script type="text/javascript" src="dist/js/veer.js"></script>
</body>HTML markup
<div class="veer" id="myCarousel">
  <!-- your carousel items -->
  <div>
    ...
  </div>
  <div>
    ...
  </div>
  <!-- you can add any icon you want or use ours-->
  <a class="veer-next">
    <svg class="icon" id="icon-next" viewBox="0 0 24 24">
      <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
    </svg>
  </a>
  <a class="veer-prev">
    <svg class="icon" id="icon-prev" viewBox="0 0 24 24">
      <path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
    </svg>
  </a>
</div>Create new carousel
  let myCarousel = new Veer('#myCarousel', {
    // settings
  });Settings
| VARIABLE | DEFAULT | DESCRIPTION | 
|---|---|---|
| itemsToShow | 1 | this variable allows you to set the amount of items displayed at a time | 
| itemsToScroll | 1 | this variable allows you to set how many items to scroll at a time | 
| infiniteScroll | true | this variable allows you enable or disable infinite scroll | 
| centerMode | false | this variable allows you enable or disable center mode | 
License
Copyright (c) 2017 Baianat
0.0.0
8 years ago