Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mawiegand/jquery-bc-swipe
Bootstrap Carousel Swipe (bcSwipe) for Rails 5 Asset Pipeline
https://github.com/mawiegand/jquery-bc-swipe
assets bcswipe bootstrap carousel javascript rails rails5 swipe
Last synced: 18 days ago
JSON representation
Bootstrap Carousel Swipe (bcSwipe) for Rails 5 Asset Pipeline
- Host: GitHub
- URL: https://github.com/mawiegand/jquery-bc-swipe
- Owner: mawiegand
- License: mit
- Created: 2017-07-20T18:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T19:40:06.000Z (over 7 years ago)
- Last Synced: 2024-04-24T03:23:57.037Z (7 months ago)
- Topics: assets, bcswipe, bootstrap, carousel, javascript, rails, rails5, swipe
- Language: Ruby
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# JqueryBcSwipe
This gem adds the super lightweight (~600 bytes) jQuery plugin to enable swipe gestures for Bootstrap 3
carousels on iOS and Android to Rails' asset pipeline.## Installation
Add this line to your application's Gemfile:```ruby
gem 'jquery_bc_swipe'
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install jquery_bc_swipe
```Include jquery.bcSwipe (or jquery.bcSwipe.min) in your `application.js` manifest:
```javscript
//= require jquery
//= require jquery_ujs
//= require jquery.bcSwipe
```## Usage
```javascript
$('.carousel').bcSwipe({ threshold: 50 });
```
Adjusting threshold will determine how long a swipe must be to move to the next carousel slide.
For more details see [Bootstrap Carousel Swipe](https://github.com/maaaaark/bcSwipe)## Contributing
Feel free to report gem issues [here](https://github.com/mawiegand/jquery-bc-swipe/issues).
For library issues see [Bootstrap Carousel Swipe](https://github.com/maaaaark/bcSwipe).## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).