Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinbatdorf/liquidslider
A Responsive jQuery Content Slider
https://github.com/kevinbatdorf/liquidslider
Last synced: 6 days ago
JSON representation
A Responsive jQuery Content Slider
- Host: GitHub
- URL: https://github.com/kevinbatdorf/liquidslider
- Owner: KevinBatdorf
- Created: 2012-08-27T12:35:06.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T17:46:32.000Z (almost 2 years ago)
- Last Synced: 2024-12-09T02:51:28.332Z (15 days ago)
- Language: JavaScript
- Size: 711 KB
- Stars: 161
- Watchers: 21
- Forks: 63
- Open Issues: 20
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Liquid Slider
## A Responsive jQuery HTML Content Slider
[Demo Page](http://kevinbatdorf.github.io/liquidslider) | [Example Page (Advanced)](http://kevinbatdorf.github.io/liquidslider/examples/page1.html)
I'm on Twitter: [@Kevin Batdorf](http://twitter.com/#!/kevinbatdorf)
## Update
I'm going to make this compatible with NPM soon, but for now there's a work around.
Two issues:1) You still need to load in the dependencies on your own
2) the asset files wil have to be manually moved, or overridden in your own css## Installation
### NPM
```bash
npm install --save git+https://[email protected]/KevinBatdorf/liquidslider.git
```then in your js file add
```js
import 'liquidslider/js/jquery.liquid-slider.min.js'
```The stylesheet is plain css, but you can load it in with sass
```scss
@import "node_modules/liquidslider/css/liquid-slider";
```### The manual way:
1. [Download](https://github.com/KevinBatdorf/liquidslider/zipball/master) the files to your working directory.
2. Link files in the header and footer.```html
```
## How to use
Structure your html in a manner similar to below:```html
Slide 1
Content
Slide 2
Content
```
4. Initialize the content slider somewhere after the script.
```javascript
jQuery(function($) {
$('#main-slider').liquidSlider();
});
```If you would like to edit a setting, do so like this:
```javascript
jQuery(function($) {
$('#main-slider').liquidSlider({
setting: value,
setting: value
});
});
```Default Settings
----------------```javascript
autoHeight: true,
minHeight: 0,
heightEaseDuration: 1500,
heightEaseFunction: 'easeInOutExpo',slideEaseDuration: 1500,
slideEaseFunction: 'easeInOutExpo',
slideEaseFunctionFallback: 'swing',
animateIn: 'bounceInRight',
animateOut: 'bounceOutRight',
continuous: true,
fadeInDuration: 500,
fadeOutDuration: 500,autoSlide: false,
autoSlideDirection: 'right',
autoSlideInterval: 6000,
forceAutoSlide: false,
pauseOnHover: false,dynamicArrows: true,
dynamicArrowsGraphical: true,
dynamicArrowLeftText: '« left',
dynamicArrowRightText: 'right »',
hideSideArrows: false,
hideSideArrowsDuration: 750,
hoverArrows: true,
hoverArrowDuration: 250,dynamicTabs: true,
dynamicTabsHtml: true,
includeTitle: true,
panelTitleSelector: '.title',
dynamicTabsAlign: 'left',
dynamicTabsPosition: 'top',
navElementTag: 'div',firstPanelToLoad: 1,
hashLinking: false,
hashTitleSelector: '.title',keyboardNavigation: false,
leftKey: 39,
rightKey: 37,
panelKeys: {
1: 49,
2: 50,
3: 51,
4: 52
},responsive: true,
mobileNavigation: true,
mobileNavDefaultText: 'Menu',
mobileUIThreshold: 0,
hideArrowsWhenMobile: true,
hideArrowsThreshold: 0,
useCSSMaxWidth: 3000,preload: function() {
this.finalize();
},
onload: function() {},
pretransition: function() {
this.transition();
},
callback: function() {},preloader: false,
swipe: true,
swipeArgs: undefined
```Versions
--------Version 2.3.8
- Fixes bug with text arrows and no mobile navVersion 2.3.7
- Fixes compatability with BootstrapVersion 2.3.6
- Recalculates panel width based on container
- Minor CSS updateVersion 2.3.2
- Fixes trimVersion 2.3.2
- Updates examples
- Fixes hashlink bugVersion 2.3.1
- Updates for jQuery repoVersion 2.3.0
- Adds bower
- Uses px instead of %Version 2.2.0
- Fixes hash linking (new approach)
- Uses API for cross linksVersion 2.1
- Fixes currentPanel bug
- Switches to a new (better?) modular strategy
- Switches license to MIT
- Improves coding style
- Sets focus/blur for autoslide
- Fixes class for cross links
- sanaziteNumber() -> sanitizeNumber() spelling fix
- Fixes autoSlide pauseOnHover bugVersion 2.0.12
- Adds currentPanel class to the current panelVersion 2.0.11
- Had to revert a autoslide bug fixVersion 2.0.10
- Fixes how RegEx works (hashLinking)
- Fixes a bug when dynamic arrows is disabled (@joeworkman)
- Adds a fallback for animate.css when css not supported (@joeworkman)
- Fixes autoslide bug (@joeworkman)Version 2.0.9
- Fixes a few of the problems with cross linksVersion 2.0.8
- Changes the way the slider builds with fadeVersion 2.0.7
- Fixes swipe bugVersion 2.0.6
- Fixes mobile widthVersion 2.0.5
- Updates touchSwipe and allows user to add options (not documented though)Version 2.0.4
- Changes how the slider downgrades to IEVersion 2.0.3
- Fixes a bug that didn't call pretransition when using animate.cssVersion 2.0.2
- Fixes a bug that loses menu names in select box when includeTitle:falseVersion 2.0.1
- Fixes auto height on resize bugVersion 2.0.0
- Completely rebuilt from the ground up
- New API
- Faster, smaller, more flexible
- Many, many new featuresVersion 1.3.7
- Overhauls the cross linking functionality
- Removes the hashCrossLinks setting.
- Contributed by @joeworkmanVersion 1.3.6
- Fixes autoslide bug and callback functionality
- Updates website on jquery repositoryVersion 1.3.5
- Prepares code for new site launch
- Fixes a bug when hover arrows is disabledVersion 1.3.4
- Fixes a bug when using fade transitions
- Allows crossLinks to control multiple slidersVersion 1.3.3
- Fixes an autoslide bugVersion 1.3.2
- Fixes a hashLinking bugVersion 1.3.1
- Fixes a bug when using fade and swipeVersion 1.3.0
- Fixes how the current class is applied when nesting slidersVersion 1.2.9
- Fixes and updates the TouchSwipe settings and scriptVersion 1.2.8
- Fixes the way the preloader works when continuous is offVersion 1.2.7
- Fixes some bugsVersion 1.2.6
- Fixes a few minor bugs.
- Organizes code for upcoming custom buildVersion 1.2.4 - 1.2.5
- Pushes new version # to jQuery repository.Version 1.2.3
- Fixes a bug when using crosslinks on multiple sliders wont apply the current class properly.Version 1.2.2
- Fixes a bug where keyboard navigation fails.Version 1.2.1
- Removes the depreciated $.browser() call.
- Fixes a bug when using hashNames that started the slider on the wrong panel.Version 1.2.0
- Adapts a new semantic versioning system
- Adds touch functionality via touchSwipe (thanks @appzuka for recommending this plugin)
- Removes jQuery and included only the link to the CDN
- Replaces jQueryUI easing with the much lighter jQuery Easing plugin.