Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanflorence/react-magic-move


https://github.com/ryanflorence/react-magic-move

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

React Magic Move
================

Magic Move for React.JS

NOT A PRODUCTION MODULE
-----------------------

This was just a fun experiment, with some love, it could definitely be a real
thing, but I don't have time. I will merge pull requests to keep it working,
but I don't maintain this right now.

Usage
-----

1. Wrap some ordered elements in ``
2. Add a key to each element
3. Add some CSS transitions and border-box sizing (so the code can
measure it more easily)

```css
.Something {
transition: all 500ms ease;
box-sizing: border-box;
}
```

```js

{this.sortedElementsWithKeys(this.state.sortBy)}

```