Glen Cheney
f72f57d5c5
Fix misspelled delimiter option #215
6 years ago
Glen Cheney
925252330c
Fix new item animation when there is an active filter
...
fixes #198
6 years ago
Glen Cheney
068c8acf9f
Fix rounding error causing transitions not to end.
7 years ago
Glen Cheney
83e3ad4958
Fix new linter errors.
7 years ago
Glen Cheney
08e5b4b5aa
Greenkeeper/eslint 4.4.0 ( #167 )
...
* chore(package): update eslint to version 4.4.0
Closes #163
* Fix lint errors. Update dev dependencies.
7 years ago
Glen Cheney
eaae5533ff
Round translate values by default.
7 years ago
Glen Cheney
a5543f16b2
Fix incorrect visible item count after `resetItems()`
7 years ago
Glen Cheney
8a863fe75c
Fix add method with new `isHidden` property.
7 years ago
Glen Cheney
dc0fe37e18
Revert "transition everything".
...
That threw off calculations on resize. Now infer things to transition from the css object map.
7 years ago
Glen Cheney
3b9e140a53
Avoid requirement for scale properties being different.
...
This is done with the new `isHidden` property of ShuffleItem which is set by `_layout` and `_shrink` because the filter methods set `isVisible`.
Allow transitions on anything, not just transform and opacity.
JSDoc `Function` => `function`.
7 years ago
Glen Cheney
510f9de192
Change default easing to material design's "standard curve"
...
Was `ease`, now `cubic-bezier(0.4, 0.0, 0.2, 1)`
https://material.io/guidelines/motion/duration-easing.html#duration-easing-natural-easing-curves
7 years ago
Glen Cheney
46161c5a9f
Avoid animating new items' position during `add`.
...
Items now fade and scale in from their "final" position instead of transitioning from 0,0 to their "final" position. This looks much more natural.
Also reduced the maximum stagger delay to 150ms.
7 years ago
Glen Cheney
ded5ff2546
Add typings file.
7 years ago
Glen Cheney
15b3738d7b
Improve isCentered option. Add tests for it.
...
isCentered will now revert previously centered rows when a following row overlaps it.
7 years ago
Glen Cheney
d08e1e3e9d
Add `isCentered` option, which mostly works.
7 years ago
Glen Cheney
bc5d41902f
Add react demo. Add `resetItems()` method.
7 years ago
Glen Cheney
0b78b0727e
Use `aria-hidden` attribute. Make methods that use transforms `protected` so people can override them to support old browsers.
...
and some other minor changes.
7 years ago
Glen Cheney
619470c43b
Add flexbox grid demo.
7 years ago
Glen Cheney
a4740223aa
Run `layout` on page load. #147
7 years ago
Glen Cheney
57ded43991
Use TinyEmitter, expect ES6 environment. Change global export to `Shuffle`.
...
Replace array-uniq with Array.from/Set
Replace xtend with Object.assign
Remove custom-event-polyfill
Use Array.prototype.includes (ES7)
7 years ago
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
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