Skip to content

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

feat: Refactor shimmer-text background and improve shake animation for consistency

CristianOlivera143891e0b06c3
diff --git a/app/globals.css b/app/globals.css
index 2de09fd..20bd6cc 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -159,10 +159,8 @@
}
.shimmer-text {
- background: linear-gradient(90deg,
- rgba(0, 0, 0, 0.3) 0%,
- rgba(0, 0, 0, 0.85) 50%,
- rgba(0, 0, 0, 0.3) 100%);
+ /* Usar background-image en lugar de background */
+ background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.3) 100%);
background-size: 200% auto;
color: transparent !important;
-webkit-background-clip: text;
@@ -171,10 +169,7 @@
}
.dark .shimmer-text {
- background: linear-gradient(90deg,
- rgba(255, 255, 255, 0.25) 0%,
- rgba(255, 255, 255, 1) 50%,
- rgba(255, 255, 255, 0.25) 100%);
+ background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.25) 100%);
}
.squircle-element-camera {
@@ -411,11 +406,27 @@ button {
}
@keyframes shake {
- 0%, 100% { transform: translateX(0); }
- 20% { transform: translateX(-2px); }
- 40% { transform: translateX(2px); }
- 60% { transform: translateX(-1px); }
- 80% { transform: translateX(1px); }
+
+ 0%,
+ 100% {
+ transform: translateX(0);
+ }
+
+ 20% {
+ transform: translateX(-2px);
+ }
+
+ 40% {
+ transform: translateX(2px);
+ }
+
+ 60% {
+ transform: translateX(-1px);
+ }
+
+ 80% {
+ transform: translateX(1px);
+ }
}
.driver-popover.minimal-dark-theme {
@@ -423,7 +434,7 @@ button {
color: oklch(0.985 0 0);
border: 1px solid oklch(1 0 0 / 10%);
border-radius: 16px;
- box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
+ box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
padding: 20px;
font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
max-width: 320px;
@@ -476,6 +487,7 @@ button {
color: oklch(0.145 0 0);
border: 1px solid transparent;
}
+
.driver-popover.minimal-dark-theme .driver-popover-next-btn:hover {
background-color: oklch(0.85 0 0);
}