Code Monkey home page Code Monkey logo

flickit's Introduction

flickIt

flickIt is a simple jQuery/Zepto plugin for creating iOS-style flickable galleries on touch-enabled devices. It is based on Flickable.

Demo

Have a look at the github page for this project: killercup.github.com/flickIt.

A demo of the original project Flickable can be viewed at flickable.aurlien.net.

Usage

    <div>
        <ul class="flickable">
            <li>First</li>
            <li>Second</li>
            <li>Third</li>
        </ul>
    </div>
    <script type="text/javascript">
        $('.flickable').flickIt({
            width: 320
        });
    </script>

Settings reference

  • width: The width of each item, including margin, padding and border. Use 'screen' to auto-fit and resize with screen. Default: 'screen'
  • subSelector: The jQuery/Zepto selector used to find the element containing the flickable panes. Default: undefined (will use container)
  • offset: Which item to start at. Default: 0
  • enableMouseEvents: Whether to enable mouse events (useful for testing). Default: false
  • showIndicators: Whether to show indicators for which item is selected. Default: true
  • showButtons: Whether to show next/previous-buttons for devices that support touch events. Default: false
  • nextButtonText: Text for next-button. Default: 'Next'
  • prevButtonText: Text for previous-button. Default: 'Previous'
  • indicatorClass: The class name for the indicator wrapper element. Default: 'flickableIndicator'
  • activeIndicatorClass: The class name for the active indicator element. Default: 'flickableIndicatorActive'
  • callback: A function to be called each time the slide changes. The function will be passed the slide number (zero-indexed), the container element (jQuery element) and the subselection element (jQuery element, can be the same as container) as parameters. this will be set to the FlickIt instance.

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

flickit's People

Contributors

arnemart avatar killercup avatar

Watchers

 avatar James Cloos avatar  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.