Commit Graph

87 Commits (4884e668d8337a97b378b98024c87ebf0ff5353f)

Author SHA1 Message Date
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
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