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
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
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
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
Glen Cheney
3cec446b93
Fixing up `revealAppended`
...
Also removed usage of `self` from adding-removing.js
10 years ago
Glen Cheney
36fad3200a
Refactor all the things.
...
Removed shrink, shrunk, filter, and filtered events.
10 years ago
Glen Cheney
c9105289e1
Update add items 3rd mode to mix in to the current set.
...
When the items are sorted, using the mix in method is much better
looking, but adding items to the end is better for infinite scrolling
and DOM order.
* Mix in.
* Add to end.
* Add to end with sequential delay.
10 years ago
Glen Cheney
ebec8b6b14
Fix bug with callback.
...
where the `layout` and `filtered` weren't called because none of the
newly filtered items would change position.
10 years ago
Glen Cheney
0a2ee22470
Add more specs
10 years ago
Glen Cheney
04a49ace41
Refactoring. Made some methods static, refactored the filtering methods.
10 years ago
Glen Cheney
0842133655
Add `visibility: hidden` to concealed items so that overlapping hidden items cannot be clicked. Closes #21 .
...
Other assorted improvements to event handling. Broke up `_transition` into smaller methods.
10 years ago
Glen Cheney
41dffdd507
Some refactoring and more constant formatting.
...
Add jshintrc file. Clean up transition method to get ready for #21 .
10 years ago
Glen Cheney
ea30d642bb
Add AMD support. Add RequireJS demo. Ref #15
10 years ago
Glen Cheney
60e156d274
Prefix remaining private methods which didn't have an underscore with an underscore. #16 #17
10 years ago
Glen Cheney
af08bc2908
Separate Modernizr and Shuffle. Create custom build of Shuffle with custom Modernizr.
...
Ref #15
Also replace the global throttle/debounce with Underscore’s and define
it locally for Shuffle.
Next up: AMD support.
10 years ago