Skip to content

Commit

Permalink
Version 1.3.4
Browse files Browse the repository at this point in the history
- Removed placeholders. Adding fluid uneven counts for all modes.
- Refactored paging. So much better now.
- Refactored add/remove
- Refactored element build
- Made centerPadding flexible to allow percentages/other units
- Dollar prefixed cached query variables
- Added vendor specific transition constraints
- Fixed lazy load index bug
- Android browser bug fixes
- Weight reduction

TLDR: It’s better, faster, cleaner & smoother
  • Loading branch information
kenwheeler committed Apr 9, 2014
1 parent 3ba6be7 commit f24dcb0
Show file tree
Hide file tree
Showing 13 changed files with 2,297 additions and 838 deletions.
3 changes: 1 addition & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ accessibility | boolean | true | Enables tabbing and arrow key navigation
autoplay | boolean | false | Enables auto play of slides
autoplaySpeed | int | 3000 | Auto play change interval
centerMode | boolean | false | Enables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts.
centerPadding | int | 50 | Side padding when in center mode.
centerPadding | string | '50px' | Side padding when in center mode. (px or %)
cssEase | string | 'ease' | CSS3 easing
dots | boolean | false | Current slide indicator dots
draggable | boolean | true | Enables desktop dragging
Expand All @@ -32,7 +32,6 @@ onAfterChange(this, index) | method | null | After slide change callback
onInit(this) | method | null | When Slick initializes for the first time callback
onReInit(this) | method | null | Every time Slick (re-)initializes callback
pauseOnHover | boolean | true | Pauses autoplay on hover
placeholders | boolean | true | Enable placeholders to enforce slidesToScroll with uneven slide counts (Doesn't work with infinite: true)
responsive | object | null | Breakpoint triggered settings
slide | string | 'div' | Slide element query
slidesToShow | int | 1 | # of slides to show at a time
Expand Down
52 changes: 26 additions & 26 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "slick-carousel",
"main": "slick/slick.min.js",
"version": "1.3.3",
"homepage": "https://github.com/kenwheeler/slick",
"authors": [
"Ken Wheeler <ken_wheeler@me.com>"
],
"description": "the last carousel you'll ever need",
"keywords": [
"responsive",
"carousel",
"jquery"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"index.html"
],
"dependencies": {
"jquery": ">=1.7"
}
}
"name": "slick-carousel",
"main": "slick/slick.min.js",
"version": "1.3.4",
"homepage": "https://github.com/kenwheeler/slick",
"authors": [
"Ken Wheeler <ken_wheeler@me.com>"
],
"description": "the last carousel you'll ever need",
"keywords": [
"responsive",
"carousel",
"jquery"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"index.html"
],
"dependencies": {
"jquery": ">=1.7"
}
}
Binary file added css/pacifico.eot
Binary file not shown.
1,093 changes: 1,093 additions & 0 deletions css/pacifico.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/pacifico.ttf
Binary file not shown.
Binary file added css/pacifico.woff
Binary file not shown.
9 changes: 9 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@font-face {
font-family: 'Pacifico';
src: url('pacifico.eot');
src: url('pacifico.eot?#iefix') format('embedded-opentype'),
url('pacifico.woff') format('woff'),
url('pacifico.ttf') format('truetype'),
url('pacifico.svg#Pacifico') format('svg');
}

#disqus_thread{margin-top:20px;}
*{-moz-box-sizing:border-box;box-sizing:border-box;}
.blue{background:#3498db;color:#fff;}
Expand Down
20 changes: 6 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<title>slick - the last carousel you'll ever need</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.0/styles/monokai.min.css">
<link rel="stylesheet" type="text/css" href="slick/slick.css"/>
Expand Down Expand Up @@ -174,7 +173,6 @@ <h2>One At A Time</h2>
$('.one-time').slick({
dots: true,
infinite: false,
placeholders: false,
speed: 300,
slidesToShow: 5,
touchMove: false,
Expand Down Expand Up @@ -210,15 +208,15 @@ <h2>Center Mode</h2>
<pre><code>
$('.center').slick({
centerMode: true,
centerPadding: 60,
centerPadding: '60px',
slidesToShow: 3,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: 40,
centerPadding: '40px',
slidesToShow: 3
}
},
Expand All @@ -227,7 +225,7 @@ <h2>Center Mode</h2>
settings: {
arrows: false,
centerMode: true,
centerPadding: 40,
centerPadding: '40px',
slidesToShow: 1
}
}
Expand Down Expand Up @@ -445,9 +443,9 @@ <h2 >Settings</h2>
</tr>
<tr>
<td>centerPadding</td>
<td>int</td>
<td>50</td>
<td>Side padding when in center mode</td>
<td>string</td>
<td>'50px'</td>
<td>Side padding when in center mode (px or %)</td>
</tr>
<tr>
<td>cssEase</td>
Expand Down Expand Up @@ -521,12 +519,6 @@ <h2 >Settings</h2>
<td>true</td>
<td>Pause Autoplay On Hover</td>
</tr>
<tr>
<td>placeholders</td>
<td>boolean</td>
<td>true</td>
<td>Enable placeholders to enforce slidesToScroll with uneven slide counts. (false doesn't work with infinite: true)</td>
</tr>
<tr>
<td>responsive</td>
<td>object</td>
Expand Down
Loading

0 comments on commit f24dcb0

Please sign in to comment.