Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/creative-punch/jQuery.adaptive-slider
A jQuery plugin for a slider with adaptive colored figcaption and navigation.
https://github.com/creative-punch/jQuery.adaptive-slider
Last synced: 3 months ago
JSON representation
A jQuery plugin for a slider with adaptive colored figcaption and navigation.
- Host: GitHub
- URL: https://github.com/creative-punch/jQuery.adaptive-slider
- Owner: Creative-Punch
- License: mit
- Created: 2014-04-06T11:13:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-07T08:22:35.000Z (over 10 years ago)
- Last Synced: 2024-07-29T22:16:33.290Z (4 months ago)
- Language: JavaScript
- Size: 643 KB
- Stars: 53
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Adaptive Slider jQuery Plugin
======================A jQuery plugin for a slider with adaptive colored figcaption and navigation.
This plugin will take a list of *figure* elements containing an image and a *figcaption* element and automagically insert navigation and color the *figcaption* background color and the navigation according to the main color found in the current image in the slider/carousel.
#Demo
**Author**: Creative Punch
Installation
------------
You can get this plugin either through the repository, or with **Bower**```
bower install adaptiveslider
```Usage
-------
First, be sure to add rgbaster.js and jQuery to your project.
Next, make sure you have a list of images, with a *figure* element inside of the list item and a *figcaption* containing a description.```html
```
Now you can simply initialize the slider with the following JavaScript:
```javascript
$(function() {
$('.adaptive-slider').adaptiveSlider({
opacity: 0.7,
normalizedTextColors: {
light: '#f1f1f1',
dark: '#222'
}
});
});
```
Both of the options are optional. Let's go over them!
Options
--------
**opacity**: This will allow you to set the opacity of the figcaption. This defaults to 1 (full opacity)
**normalizedTextColors**: An array. This allows you to configure what color the light text (on a dark background) should have, and vice versa.
Contributing
-------------
Feel free to contribute by forking this project and sending me a pull request!
Todos
--------
* Make it responsive!
* Add options for more slider animations other than fade
License
--------
MIT License