diff --git a/frontend/src/components/Deck.vue b/frontend/src/components/Deck.vue
index a6f9cf9..bc8f729 100644
--- a/frontend/src/components/Deck.vue
+++ b/frontend/src/components/Deck.vue
@@ -1,10 +1,14 @@
@@ -23,6 +27,7 @@ export default {
icon: '💥',
},
lastScrap: null,
+ previousScrap: null,
pending_action: false,
}),
sockets: {
@@ -44,6 +49,12 @@ export default {
this.$socket.emit('draw')
}
}
+ },
+ watch: {
+ lastScrap(newVal, old) {
+ this.previousScrap = old
+ newVal;
+ }
}
}
@@ -53,5 +64,28 @@ export default {
margin:0;
align-items: center;
justify-content: center;
+ flex-direction: row-reverse;
+}
+.last-scrap {
+ position: absolute;
+ top: 0;
+ animation-duration: 0.8s;
+ animation-name: slidein;
+}
+@keyframes slidein {
+ from {
+ transform: translate(-100px, 10px) scale(1.3) rotate(-10deg);
+ }
+ to {
+ transform: translate(0, 0) scale(1);
+ }
+}
+.pick:hover {
+ transform: translate(-10px,0);
+ z-index: 1;
+}
+.draw:hover {
+ transform: translate(0,10px);
+ z-index: 1;
}
\ No newline at end of file
diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue
index 714b0ed..2a7b743 100644
--- a/frontend/src/components/Player.vue
+++ b/frontend/src/components/Player.vue
@@ -5,7 +5,7 @@
-
+