Giter VIP home page Giter VIP logo

carusela.js's Introduction

Carusela.js

Overflow scroll based carousel, aiming for minimalist JS code manipulations by using CSS 'scroll' as animation in order to get most native like feeling in both desktop and mobile touch enabled devices.

Check out the demo page

Demo

Features

  • Back & forward buttons
  • Using -webkit-overflow-scrolling for momentum scrolling
  • RTL support (rtl as default)
  • Handle with touch devices
  • Smooth scrolling
  • Fold scrolling
  • Toggle backward button display

Getting Started

Install

Add to your code the carusela.js and carusela.css files.

<link href="path-to-your-file/carusela.css" type="text/css" rel="stylesheet"/>
<script src="path-to-your-file/carusela.js"></script>

With Bower

bower install walla-carusela

Initialize the Carusela class with any DOM element that contains any number of direct children.

var carusela = new Carusela().init();

Set html

<ul id="demo">
    <li><img src="http://www.walla.co.il/images/apple/common-color-1.png" alt="Slide #1">
    <li><img src="http://www.walla.co.il/images/apple/common-color-2.png" alt="Slide #2">
    <li><img src="http://www.walla.co.il/images/apple/common-color-3.png" alt="Slide #3">
    <li><img src="http://www.walla.co.il/images/apple/common-color-4.png" alt="Slide #4">
</ul>

Optional

var carusela = new Carusela({
    direction: 'ltr',             =>     rtl / ltr         (string)   
    scrollingPer : 'element',     =>     fold / element    (string) 
    toggleBackward : true         =>     true / false      (boolean)
}).init();

Roadmap

Stuff we need to add...

  • Add build
  • Add tests

Follow Us

carusela.js's People

Contributors

eldadfux avatar shotap avatar

Stargazers

 avatar  avatar RYeah Sh avatar  avatar

Watchers

Yehuda Deutsch avatar James Cloos avatar Michael Chekin avatar Oleg Puzis avatar  avatar  avatar Dan Hazan avatar Anton Asnitsky avatar Naor Torgeman avatar Ohad Koren avatar  avatar  avatar Yuliya Stronhin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.