https://sortablejs.github.io/Sortable/

https://github.com/SortableJS/Sortable#cdn

<style>
* {
margin: 0;
padding: 0;
}
#Target1 {
list-style: none;
}
#Target1>li {
border: 1px solid #333;
padding: 5px;
cursor: pointer;
}
#Target1>li.GhostItem {
background-color: skyblue;
}
</style>
<ul id="Target1">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script>
<script>
const target_1 = document.querySelector('#Target1');
new Sortable(target_1, {
animation: 150,
ghostClass: 'GhostItem'
});
</script>