From 08a1a5e87771c375102ae1ed26ba27aa30697b87 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Thu, 6 Mar 2025 11:52:31 +0100 Subject: [PATCH 1/3] feat(deposit): implement modal animations with GSAP --- frontend/bun.lock | 3 + frontend/package.json | 1 + .../feature/deposit/deposit.component.html | 4 +- .../app/feature/deposit/deposit.component.ts | 60 ++++++++++++++++++- .../confirmation/confirmation.component.html | 4 +- .../confirmation/confirmation.component.ts | 33 +++++++++- .../components/navbar/navbar.component.html | 10 ++-- .../services/modal-animation.service.ts | 53 ++++++++++++++++ frontend/src/styles.css | 26 +++++++- 9 files changed, 177 insertions(+), 17 deletions(-) create mode 100644 frontend/src/app/shared/services/modal-animation.service.ts diff --git a/frontend/bun.lock b/frontend/bun.lock index f5631b4..5b0629c 100644 --- a/frontend/bun.lock +++ b/frontend/bun.lock @@ -19,6 +19,7 @@ "@fortawesome/free-solid-svg-icons": "^6.7.2", "@stripe/stripe-js": "^5.6.0", "@tailwindcss/postcss": "^4.0.3", + "gsap": "^3.12.7", "keycloak-angular": "^16.0.1", "keycloak-js": "^25.0.5", "postcss": "^8.5.1", @@ -1068,6 +1069,8 @@ "graphemer": ["graphemer@1.4.0", "", {}, "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag=="], + "gsap": ["gsap@3.12.7", "", {}, "sha512-V4GsyVamhmKefvcAKaoy0h6si0xX7ogwBoBSs2CTJwt7luW0oZzC0LhdkyuKV8PJAXr7Yaj8pMjCKD4GJ+eEMg=="], + "handle-thing": ["handle-thing@2.0.1", "", {}, "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg=="], "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], diff --git a/frontend/package.json b/frontend/package.json index 646c8a4..0ad0967 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -28,6 +28,7 @@ "@fortawesome/free-solid-svg-icons": "^6.7.2", "@stripe/stripe-js": "^5.6.0", "@tailwindcss/postcss": "^4.0.3", + "gsap": "^3.12.7", "keycloak-angular": "^16.0.1", "keycloak-js": "^25.0.5", "postcss": "^8.5.1", diff --git a/frontend/src/app/feature/deposit/deposit.component.html b/frontend/src/app/feature/deposit/deposit.component.html index fdaf87a..e8e4dfb 100644 --- a/frontend/src/app/feature/deposit/deposit.component.html +++ b/frontend/src/app/feature/deposit/deposit.component.html @@ -1,6 +1,6 @@ @if (isOpen) { -