Skip to content

A repsonsive carousel that supports SVG and is customizable to the core.

Notifications You must be signed in to change notification settings

baianat-experiments/carousel-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Getting Started

Install

First step is to install it using yarn or npm

npm install @baianat/veer

# or use yarn
yarn add @baianat/veer

Include 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

MIT

Copyright (c) 2017 Baianat

Releases

No releases published

Packages

No packages published