added fancy drag animation

This commit is contained in:
Simon Hyll
2023-07-01 16:05:04 +02:00
parent f4a9e04ab4
commit 8dd24a70f7

View File

@@ -81,6 +81,7 @@
group="people"
itemKey="name"
class="draggable-container"
v-bind="dragOptions"
>
<template #header>
<h1 class="text-center">Candidates</h1>
@@ -208,6 +209,13 @@ export default {
]),
};
},
computed: {
dragOptions() {
return {
animation: 200,
};
},
},
};
</script>
@@ -216,6 +224,7 @@ export default {
cursor: move;
margin-top: 16px;
flex-grow: 1;
transition: transform 0.5s;
}
.draggable-container {