This is a reference / demo project in SvelteKit for drag and drop / sortable-lists applications. This project uses the native SortableJs that can be used for vanilla JavaScript applications.
This project uses a forked version of the SortableJs library.
This fork mainly addresses the data binding with the DOM rendering. Thus beeing able to use it natively with SvelteJs.
Hopefuly in the near future the PRs get merged so we could all enjoy this functionality natively.
git clone https://github.com/roy-mdr/Svelte-Sortable-Drag-and-Drop.git
cd Svelte-Sortable-Drag-and-Drop
npm i
npm run dev
npm install roy-mdr/Sortable#roy
instead of npm install sortablejs
transition: all ...;
to a Sortable Element.display: none;
to every children of a Sortable Element