Skip to content

Programmatically move an element (and trigger FLIP animation) #1954

Description

@jjeff

PLEASE READ THE CONTRIBUTION GUIDELINES HERE!

Failure to comply may have your issue automatically closed.

Summary

Please answer the following questions in sentences.

  • What is the feature?

There should be a way to programmatically move a single element in the array in a way that triggers the animations. SortableJS has great FLIP animation functionality that happens while dragging. It also has a .sort() function which allows you to sort the elements, but it does not animate. I realize that it would a lot to coordinate animation during .sort() (although that would be nice). But I'm guessing that it would/should be easy to move a single item from one place in the list to another in a way that triggers the animation.

  • Why is having this feature important to you?

I'm working on an Electron application which offers menu items to move elements. But the "jumping" items is bad UX. If I can't do this with Sortable, I'll need to add another library to my project to get this type of functionality.

  • Who else will find having this feature helpful?

Anyone who wants to use SortableJS in a complex UI with more accessible ways of "dragging" elements (perhaps for those with mobility issues).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions