Skip to content

Commit 2ba806e

Browse files
authored
Waspello: Tilt cards when dragging (#2413)
1 parent b760316 commit 2ba806e

File tree

2 files changed

+118
-65
lines changed

2 files changed

+118
-65
lines changed

examples/waspello/src/cards/Main.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ button.open-add-list {
233233

234234
background-color: #ebecf0;
235235
border-radius: 3px;
236+
237+
transition: transform 200ms ease-in-out;
238+
}
239+
240+
.list--dragging {
241+
transform: rotate(2deg);
242+
}
243+
244+
.list--drop-animating {
245+
transform: rotate(0deg);
236246
}
237247

238248
.list-header {
@@ -418,6 +428,15 @@ textarea.card-composer-textarea {
418428
margin-bottom: 8px;
419429
padding: 6px 8px 2px;
420430
box-shadow: 0 1px 0 rgb(9 30 66 / 25%);
431+
transition: transform 200ms ease-in-out;
432+
}
433+
434+
.list-card--dragging {
435+
transform: rotate(4deg);
436+
}
437+
438+
.list-card--drop-animating {
439+
transform: rotate(0deg);
421440
}
422441

423442
.list-card-title {

0 commit comments

Comments
 (0)