Commit Graph

61 Commits (v4.2.0)

Author SHA1 Message Date
Glen Cheney 4f95fba70b Update filterMode option. Add tests for filterMode. 7 years ago
David Gallego Varela 8e769ce651 Add the option to filter element with more than one key to _doesPassF… (#143)
* Add the option to filter element with more than one key to _doesPassFilter the new option is this.options.filterMode and values Shuffle.filterMode.EXCLUSIVE or Shuffle.filterMode.ADDITIVE

* Package change for use with npm

* Error on package.json

* Merge branch 'master' of github.com:Vestride/Shuffle

* check travis errors
7 years ago
Glen Cheney 61c975ccf1 Replace JSHint and JSCS with ESLint 7 years ago
Glen Cheney a56ccb3cd5 Replace webpack with rollup (#138) 7 years ago
Glen Cheney 407852eb72 Fix `before` styles not applied when the item didn’t move. Fixes #133 7 years ago
Glen Cheney 13d3dacc77
Fix delimeter option #108 8 years ago
Glen Cheney 95c49edf9d
fix transition delay not being applied correct 8 years ago
Glen Cheney ef1f1f1c88
Add `instance.group` back instead of changing the option object 8 years ago
Glen Cheney 790b957bc3
Use ES6 export for main file. Add index.js to export the `default` to module.exports
This would allow module bundlers like rollup to use jsnext:main and it'll all be ES6 import/exports
8 years ago
Glen Cheney e1ea20f7da
Replace Promise dependency with array-parallel package 8 years ago
Glen Cheney 7aa6461b4d Move layout positioning logic to its own file. 8 years ago
Glen Cheney 99ed4e37fe Add ability to customize styles. Rename filtered => visible and concealed => hidden.
Prefix shuffle item state classes.
Change ClassName => Classes because it's shorter.
8 years ago
Glen Cheney 150de2024f Remove `.es6` suffix for file name. Remove old grunt file.
Only include jQuery on pages which request it.
Use SRI hash for CDN version of jQuery.
8 years ago
Glen Cheney 98c916d3cd Fix error when trying to remove and item already being removed. 8 years ago
Glen Cheney d7e4f4b720 Switch to npm module for throttling. 8 years ago
Glen Cheney 60cc0241b3 Docs updates. Remove LOADING and DONE events. 8 years ago
Glen Cheney b6c7dbb367 Fix stagger amount affected by items which don't move. 8 years ago
Glen Cheney b6d9f23e2b Finish converting tests to mocha+chai. Add helper for onTransitionEnd. 8 years ago
Glen Cheney cfa68c76de Switch to mocha/chai for tests with gulp-mocha-phantomjs
JSDom's getComputedStyle wasn't working.
8 years ago
Glen Cheney 6adb041ba1 Put home page demo items inside aspect boxes. 8 years ago
Glen Cheney 244f89aaba Move gulp tasks to separate files. Replace grid. Add autoprefixer. 8 years ago
Glen Cheney 601b29736f Use npm modules instead of custom implementations. 8 years ago
Glen Cheney acdc379679 Use options object instead of adding to the instance directly. 8 years ago
Glen Cheney d294a42913 Update adding and removing items. 8 years ago
Glen Cheney 1dd55b0505 Use web pack multi compiler. 8 years ago
Glen Cheney b9065eb9b0 Got jest working for tests. jsdom sucks. 8 years ago
Glen Cheney 37e6a86ff3 Added stagger option. More refactoring. Working home page demo again. 8 years ago
Glen Cheney efc1f8087a Remove ES6 built-ins so I don't have to include babel-polyfill 8 years ago
Glen Cheney eebf0b42a2 Start ES6 conversion and jQuery / Modernizr removal. 8 years ago
Alex Jensen 1d8837009d filter items that have every category in keys 9 years ago
Glen Cheney f63df88dd2 Use the <html> element when the body doesn't exists when testing computed style. 9 years ago
Glen Cheney 16b42ec0b9 Handle decimal column widths better #46. New columnThreshold option. 9 years ago
Glen Cheney 86c8d2e77a Allow speed to be zero. Fixes #64 9 years ago
Glen Cheney 1c077779c4 Cancel previous animations instead of ignoring the new one. Fixes #69 9 years ago
Robert Rothermel 71b2b7f722 Add CommonJS support 10 years ago
Glen Cheney 5b51302b27 Remove padding offset fixes. Add info about it to FAQ. 10 years ago
Glen Cheney f2367d24e2 Add explanation of column set and another test to go with it. 10 years ago
Glen Cheney 9023e29f16 Small tweaks and JSDoc additions. 10 years ago
Glen Cheney 1abab75943 Fix maintaining last sort object when called without arguments. 10 years ago
Glen Cheney 930a4bf3bb Rename colYs to positions and position to point. 10 years ago
Glen Cheney 77ab29d945 Use point object and fix the outer width method. Attach Shuffle to the window.
It doesn't work when an element has been scaled and using getBoundingClientRect. The rect returns the actual width of the scaled element.
Shuffle is now a global variable - mostly so I can access it from tests. I don't know of a better way.
10 years ago
Glen Cheney faae1c7e32 Ensure the shuffle container has css styles it needs applied to it #26 10 years ago
Glen Cheney 78d24cc8ee Update docs and options descriptions. 10 years ago
Glen Cheney dcb16daf28 Refactor. Fix 🐛 calculating widths.
Refactor the getItemPosition method.
Fix `_getOuterWidth` for Firefox because offsetWidth/Height return
integers for Firefox. Now it uses `getBoundingClientRect` to determine
the width.
Up the column threshold from `0.03` to `0.3` because Safari (desktop &
mobile) return integers for the client rect and offsetWidth.
Add a note about the native Android browser with 4.1.0 and 4.1.1 where
it incorrectly thinks it supports unprefixed transitions.
10 years ago
Glen Cheney e6cb28bd1e Explicitly use jQuery instead of $. #25 10 years ago
Glen Cheney e1cc848631 Gandalf wouldn't let them pass. 10 years ago
Glen Cheney 7ad8133147 Fix callback events when using jQuery.animate.
Replaced setTimeout/proxy with a defer method which can take a context.
Changed jQuery to use v1 instead of v2 in testing so that old IE can
use the tests.
Add a few specs where `supported = false` so jQuery.animate will be
tested.
Add isTransitioning flag to determine when shuffle is already doing
something.
10 years ago
Glen Cheney a40cc67a90 Specs, refactoring, JSDoc. 10 years ago
Glen Cheney c829b3f54a Remove usage of `self` and the single-var pattern. 10 years ago
Glen Cheney 17d6365487 Move to Shuffle.prototype.method = function. 10 years ago