You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hertzbeat.apache.org by zh...@apache.org on 2025/02/06 13:49:38 UTC
(hertzbeat) branch improve-slide created (now 8f5be2b873)
This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a change to branch improve-slide
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
at 8f5be2b873 feat(alert-center): enhance alert card animations and interactions
This branch includes the following new commits:
new 8f5be2b873 feat(alert-center): enhance alert card animations and interactions
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
(hertzbeat) 01/01: feat(alert-center): enhance alert card animations and interactions
Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
zhaoqingran pushed a commit to branch improve-slide
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit 8f5be2b8737c82a721e4d1ee7899b6b2163b30f7
Author: Logic <zq...@dromara.org>
AuthorDate: Thu Feb 6 21:49:19 2025 +0800
feat(alert-center): enhance alert card animations and interactions
- Update slideInFromRight animation to include scaling and rotation- Add hover effects for alert cards- Implement glowing effect for new alerts- Adjust alert card landing animation
- Optimize transitions and add perspective for3D effects
---
.../alert/alert-center/alert-center.component.less | 78 ++++++++++++++++++++--
1 file changed, 73 insertions(+), 5 deletions(-)
diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.less b/web-app/src/app/routes/alert/alert-center/alert-center.component.less
index c0827e819a..5e42f46244 100644
--- a/web-app/src/app/routes/alert/alert-center/alert-center.component.less
+++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.less
@@ -284,20 +284,88 @@
@keyframes slideInFromRight {
0% {
- transform: translateX(100%);
+ transform: translate3d(120%, 0, 0) scale(0.95) rotate(3deg);
opacity: 0;
+ filter: blur(2px);
+ box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}
- 100% {
- transform: translateX(0);
+ 50% {
opacity: 1;
+ filter: blur(0);
+ transform: translate3d(-5%, 0, 0) scale(1) rotate(-1deg);
+ }
+ 75% {
+ transform: translate3d(2%, 0, 0) scale(1) rotate(0.5deg);
+ }
+ 100% {
+ transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
+ box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}
}
.alert-card {
position: relative;
- transition: transform 0.5s ease-out, opacity 0.5s ease-out;
+ transition:
+ transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
+ opacity 0.5s ease-out,
+ box-shadow 0.3s ease;
+ will-change: transform, opacity;
+
+ &:hover {
+ transform: translateY(-2px) scale(1.005);
+ box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
+ }
+
+ &::after {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(
+ 90deg,
+ rgba(255, 255, 255, 0) 0%,
+ rgba(255, 255, 255, 0.3) 50%,
+ rgba(255, 255, 255, 0) 100%
+ );
+ opacity: 0;
+ animation: slideGlow 1s cubic-bezier(0.4, 0, 0.2, 1);
+ }
&.new-alert {
- animation: slideInFromRight 0.5s ease-out forwards;
+ animation:
+ slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
+ cardLanding 0.6s 0.3s ease-out forwards;
+ }
+}
+
+@keyframes slideGlow {
+ 0% {
+ transform: translateX(-100%);
+ opacity: 0;
+ }
+ 50% {
+ opacity: 0.6;
+ }
+ 100% {
+ transform: translateX(100%);
+ opacity: 0;
}
}
+
+@keyframes cardLanding {
+ 0% { transform: translateY(0); }
+ 50% { transform: translateY(-8px); }
+ 80% { transform: translateY(2px); }
+ 100% { transform: translateY(0); }
+}
+
+.alert-card:nth-child(1) { animation-delay: 0.1s; }
+.alert-card:nth-child(2) { animation-delay: 0.15s; }
+.alert-card:nth-child(3) { animation-delay: 0.2s; }
+.alert-card:nth-child(n+4) { animation-delay: 0.25s; }
+
+.alert-cards {
+ perspective: 1200px;
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org