Glen Cheney
a5543f16b2
Fix incorrect visible item count after `resetItems()`
7 years ago
Glen Cheney
03218eeb8c
Use id instead of array index react key
7 years ago
Glen Cheney
db94d2b6af
Fix react demo mobile view.
7 years ago
Glen Cheney
40e6db99c8
Fix typo, demo consistency.
7 years ago
Glen Cheney
d9d3f92943
Upgrade rollup version.
7 years ago
Glen Cheney
68fc6ae10a
Remove rounding of item positions. ref #10
...
If you want to round them still, subclass `Shuffle` and override the `getStylesForTransition()` method.
7 years ago
Glen Cheney
9bb8f43f17
Use item title instead of groups for caption.
7 years ago
Glen Cheney
bb750a3fb8
Update demo screenshots.
7 years ago
Glen Cheney
983adbc481
Add "Filters" section.
7 years ago
Glen Cheney
92490e8193
Update code samples. Add "Docs" dropdown to the main nav.
...
Docs dropdown has jump links to sections of the homepage.
7 years ago
Glen Cheney
6d19b27789
Use new images from unsplash.com for demos.
7 years ago
Glen Cheney
14a416c121
Update type styles. Change homepage <select> to radio buttons.
7 years ago
Glen Cheney
746d03aab4
Update button styles.
7 years ago
Glen Cheney
2ebbbac652
New main navigation. Reorganize css files.
7 years ago
Glen Cheney
c8299bbcc2
Upgrade normalize.css. Remove normalize from main css bundle.
7 years ago
Glen Cheney
7669846d32
Add cssnano to css compilation.
...
Log sass errors instead of stopping gulp and leaving the jekyll ruby process detached.
7 years ago
Glen Cheney
fb96b330c6
Move jekyll static site to /docs
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
533716bd40
Add links to demo source for a few demos.
7 years ago
Glen Cheney
bc5d41902f
Add react demo. Add `resetItems()` method.
7 years ago
Glen Cheney
e5d15e9913
Remove lockfile.
...
https://github.com/sindresorhus/ama/issues/479#issuecomment-310661514
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
b0d2ed1317
Update custom prism build.
7 years ago
Glen Cheney
9c05feb7a4
Add click-to-remove to adding and removing demo.
7 years ago
Glen Cheney
e2d6e6f5bc
Update dns prefetch domains.
7 years ago
Glen Cheney
d65d1c0ab0
Update meta author and description.
7 years ago
Glen Cheney
2185f6c7e0
Replace jQuery and legacy viewport helper with IntersectionObserver.
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
6bdc0491a9
Add ES6/7 env note. Remove references to bower.
...
Remove `--save` from npm install because npm@5 saves automatically.
7 years ago
Glen Cheney
e1edc7af50
Update requirejs version.
7 years ago
Glen Cheney
84f391bc79
Update jquery version.
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
0cb7ba01f7
Remove explicit bower support.
7 years ago
Glen Cheney
8e8a82953a
Remove `jsnext:main` field pointing at the `src` directory.
...
It's only for `import` and `export`, not other ES2015+ features.
7 years ago
Glen Cheney
fbabe9182c
Update unsupported options for rollup-uglify.
7 years ago
greenkeeper[bot]
e8ceffbb46
chore(package): update rollup to version 0.42.0 ( #151 )
7 years ago
greenkeeper[bot]
b06a392ae7
chore(package): update rollup-plugin-uglify to version 2.0.0 ( #149 )
7 years ago
greenkeeper[bot]
ea1dec6401
chore(package): update chai to version 4.0.1 ( #150 )
7 years ago
Glen Cheney
4f95fba70b
Update filterMode option. Add tests for filterMode.
7 years ago
Glen Cheney
78f87fc6e1
Updated vendor prefixes from new autoprefixer version.
7 years ago
Glen Cheney
3cf89f6582
Fix test task crash.
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