How does Trello snap tasks into place so nicely?

We are working on an app right now and would like to be able to drag elements on the screen, then drop them, and have them snap into place. Trello does this really nicely, so we were wondering if ya'll know how they did that. I'm assuming this is done with JavaScript, but we were wondering if the Trello community had some insight on the matter.

1 answer

2 votes

Hi Max,

We have a drag-and-drop library that puts the element into a certain place on the page, and then the browser handles the positioning of it. Good luck with your app!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 18, 2018 in Trello

How two Biomed teachers use Trello to execute on Project Lead The Way

This is the first of many Showcases highlighting incredible Atlassian users in Education! And Michael Burke and Josh Clemmer are setting the Showcase bar high. The pair of Biome...

47,424 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you