Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: add glow effect with custom property and animation to enhance button visuals

CristianOlivera19d2cc9d24716
diff --git a/app/globals.css b/app/globals.css
index 26ef942..7b00a9f 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -296,4 +296,26 @@ button {
font-weight: 900;
text-anchor: middle;
dominant-baseline: middle;
+}
+
+@property --glow-x {
+ syntax: '<percentage>';
+ inherits: false;
+ initial-value: 50%;
+}
+
+@keyframes float-glow {
+ 0%, 100% { --glow-x: 45%; filter: blur(100px) opacity(0.8); }
+ 50% { --glow-x: 55%; filter: blur(130px) opacity(1); }
+}
+
+.pro-glow {
+ background: radial-gradient(
+ circle at var(--glow-x) 50%,
+ rgba(6, 182, 212, 0.5) 0%,
+ rgba(6, 182, 212, 0.1) 40%,
+ rgba(6, 182, 212, 0) 70%
+ );
+ animation: float-glow 10s ease-in-out infinite;
+ mix-blend-mode: screen;
}
\ No newline at end of file