Skip to content

borsch/carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carousel

This is a simple util to make you langing pages more beautiful.

Usage sample:


CarouselInit(selector, {
  directions: [
    'left',
    'down',
    'right',
    'down'
  ],
  easing: Math.sin,
  circle: true,
  time: 500
 });
 // selector - your html block element
 // direction[optional] - array with directions for animation(by default will produced array with 'down' options)
 // easing[optional] - function that return value in [0, 1] interval
 // tile[optional] - time for animation(change slides)
 // circle[option] - allow to move slides in circle(default is false)

Change Log:

  • version 1.1.0 (18.02.17)
    • allow to move slides in circle
  • version 1.0.0 (13.02.17)
    • add main functionality