From c19c399508e22add95a4e95f0c05f7f05b68dad8 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sun, 8 Dec 2019 01:08:49 +0530 Subject: [PATCH] :tada: Added icon button animation --- assets/css/styles.scss | 16 ++++++++++++++++ layouts/default.vue | 9 +++------ pages/index.vue | 1 - 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 4b6aed12e..29a900764 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -426,6 +426,22 @@ button { } } +@keyframes beat { + 30% { + transform: scale(1.1); + } + 50% { + transform: scale(0.9); + } + 100% { + transform: scale(1); + } +} + +.material-icons:active { + animation: beat 0.5s forwards 1; +} + fieldset { margin: 16px 0; border: 1px solid var(--brd-color); diff --git a/layouts/default.vue b/layouts/default.vue index 0f5ef8f19..24cfaee78 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -20,6 +20,7 @@ width="24" height="24" viewBox="0 0 24 24" + class="material-icons" > - + ({{version.variant}}) --> - + diff --git a/pages/index.vue b/pages/index.vue index 3cd956ae2..e4a75d9c5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -312,7 +312,6 @@ > file_copy -