Skip to content

kubangk/VanillaRoulette

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VanillaRoulette.js


VanillaRoulette.js - vanilla JavaScript library, which designed to rotate horizontal roulettes

DEMO

You can see demo here :)

Usage

Using VanillaRoulette.js is really simple:

  1. Link CSS and JS to your page:
<link href="libs/vanillaRoulette/vanillaRoulette.min.css" rel="stylesheet">
<script src="libs/vanillaRoulette/vanillaRoulette.min.js"></script>
  1. Create a container for roulette and fill it with content blocks (you can use any tag filled with any content):
<div id="roulette">
    <div>...</div>
    <div>...</div>
    <div>...</div>
    <div>...</div>
</div>
  1. Initialize the roulette (simply pass a unique selector to the Roulette constructor):
let roulette = new Roulette("#roulette");
  1. Profit

VanillaRoulette has a number of configurable options, so you're welcome to visit our Wiki!)

About

Vanilla JavaScript library, which designed to rotate horizontal roulettes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.2%
  • CSS 2.8%