Skip to content

Commit 8380dca

Browse files
committed
fix: added microanimation on copy link button
1 parent 323b33a commit 8380dca

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pages/diff/_diff.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<button
66
type="button"
77
@click="copyUrlToClipboard"
8-
class="inline-flex justify-center px-4 py-2 text-white transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none align-center focus:ring-4 active:scale-y-75"
8+
class="inline-flex justify-center px-4 py-2 text-white transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none copy-uri-button align-center focus:ring-4 active:scale-y-75"
99
>
1010
<svg
1111
class="w-6 h-6 mr-2"
@@ -166,3 +166,12 @@ export default {
166166
},
167167
}
168168
</script>
169+
170+
<style>
171+
.copy-uri-button:hover {
172+
@apply shadow-lg;
173+
}
174+
.copy-uri-button:hover svg {
175+
@apply scale-110 rotate-12;
176+
}
177+
</style>

0 commit comments

Comments
 (0)