Hey folks,
just wanted to share a small css snippet with you:
@keyframes begindrag {
0% {
transform: rotate(0deg) translateX(-50%) translateY(-75%);
}
10% {
transform: rotate(-3deg) translateX(-50%) translateY(-75%);
}
30% {
transform: rotate(3deg) translateX(-50%) translateY(-75%);
}
55% {
transform: rotate(-1deg) translateX(-50%) translateY(-75%);
}
80% {
transform: rotate(1deg) translateX(-50%) translateY(-75%);
}
100% {
transform: rotate(-1deg) translateX(-50%) translateY(-75%);
}
}
.e-cloned-card {
animation-name: begindrag !important;
animation-duration: .8s !important;
animation-timing-function: ease !important;
animation-fill-mode: forwards !important;
box-shadow: #0006 0 0 4px 0 !important;
}
Results in:
- Dragged kanban card now "centered" (well, mostly)
- Nice animation (you're welcome to improve)

Have a nice day