From 0ccb165235d10e0ad2a7600be19096c7642a0dc3 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 1 Nov 2024 10:55:05 +0000 Subject: [PATCH] Animate copy icon --- assets/tailwind.config.js | 19 ++++++++++++++++ .../live/record_live/show.html.heex | 10 ++++----- .../live/wishlist_live/show.html.heex | 11 +++++----- priv/gettext/default.pot | 22 +++++++++---------- 4 files changed, 39 insertions(+), 23 deletions(-) diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index cd7ec42c..eae31325 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -20,6 +20,25 @@ module.exports = { fontFamily: { sans: ['Inter', ...defaultTheme.fontFamily.sans], }, + animation:{ + 'shake': 'shake 0.82s cubic-bezier(.36,.07,.19,.97) both', + }, + keyframes: { + 'shake' : { + '10%, 90%': { + transform: 'translate3d(-1px, 0, 0)' + }, + '20%, 80%' : { + transform: 'translate3d(2px, 0, 0)' + }, + '30%, 50%, 70%': { + transform: 'translate3d(-4px, 0, 0)' + }, + '40%, 60%': { + transform: 'translate3d(4px, 0, 0)' + } + } + } }, }, plugins: [ diff --git a/lib/music_library_web/live/record_live/show.html.heex b/lib/music_library_web/live/record_live/show.html.heex index 4d9aa3ad..d1b3171f 100644 --- a/lib/music_library_web/live/record_live/show.html.heex +++ b/lib/music_library_web/live/record_live/show.html.heex @@ -60,12 +60,10 @@ <%= @record.musicbrainz_id %> -