kinetic-slider

Kinetic Slider for AngularJS

MIT License

Stars
11
Committers
2

Note: This project is no longer being maintained. If you're interested in this project, you should really look at my fork infinite-slider. It has many more features and has undergone significant QA testing.

kinetic-slider

If you'd like to contribute to this project, PRs are appreciated.

#How do I add this to my project?

You can download this by:

  • Using bower and running bower install kinetic-slider
  • Downloading the zip file

#Dependencies

kinetic-slider depends on Angular, angular-mousewheel, and hamsterjs.

Getting Started

You need the following script tags:

<script src="vendor/hamster.js"></script>
<script src="vendor/mousewheel.js"></script>
<script src="gilbox-kinetic-slider.js"></script>

Add kinetic-slider as a dependency to your app:

angular.module('myApp', ['gilbox.kineticSlider']);

Note that in your HTML you may optionally provide the content-width, otherwise it will be calculated automatically as shown here:

  <div kinetic-slider class="kinetic-slider-container">
    <div class="kinetic-slider-content">

      <!-- content goes here -->

    </div>
  </div>

Some minimal styling is required:

.kinetic-slider-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.kinetic-slider-content {
  position: absolute;
  z-index: 1;         // note: make sure you set a z-index
  width: 100%;
  height: 400px;
}

Demo

Check out the demo

License

The MIT License

Copyright (c) 2013 Gil Birman http://gilbox.me/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.