How does Trello snap tasks into place so nicely?

Max Reichman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2017

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
Caity
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2017

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!

Max Reichman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2017

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events