Design3 min read
How to make elements draggable with drag and drop in Webflow
Learn how to make elements draggable in Webflow with jQuery UI.
In this tutorial, Sandro, co-founder of Gemeos Webflow agency, shows you how to make elements draggable with drag and drop in Webflow using jQuery UI.
Example
| Step | Where | Action |
|---|---|---|
| 1 | Page Settings > Head | Load jQuery UI from cdnjs |
| 2 | Webflow Designer | Add the draggable-element class |
| 3 | Footer code | Initialize .draggable() |
1. Load jQuery UI in the head
In Page Settings > Custom Code > Head, add:
2. Add the class to your element
In the Webflow Designer, add the draggable-element class to the element you want to make draggable.
3. Initialize it in Footer code
$(function() {
$('.drag').draggable({
});
});Conclusion
Two lines of code for native, robust drag and drop. See also: make an element draggable in Webflow.


