Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

fix: make the Glassmorphism dots fainter

matin409d14063b51
diff --git a/animations/06-3d-advanced/glassmorphism-animated/README.md b/animations/06-3d-advanced/glassmorphism-animated/README.md
index 1c84ddd5..ff5bd9b5 100644
--- a/animations/06-3d-advanced/glassmorphism-animated/README.md
+++ b/animations/06-3d-advanced/glassmorphism-animated/README.md
@@ -56,7 +56,7 @@ Three CSS properties create the glass effect:
content: "";
position: absolute;
inset: 0;
- background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 16px, transparent 18px) 0 0 / 56px 56px;
+ background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 16px, transparent 18px) 0 0 / 56px 56px;
mask-image: radial-gradient(ellipse closest-side, #000 68%, transparent);
}
```
diff --git a/animations/06-3d-advanced/glassmorphism-animated/index.html b/animations/06-3d-advanced/glassmorphism-animated/index.html
index 96cb233c..d45173d3 100644
--- a/animations/06-3d-advanced/glassmorphism-animated/index.html
+++ b/animations/06-3d-advanced/glassmorphism-animated/index.html
@@ -37,7 +37,7 @@
100%{transform:translate(30px,10px) scale(1.05)}
}
/* A faint pattern of soft white dots between the colors and the glass: the blurred colors alone leave the glass nothing to soften, so Light, Medium and Heavy frost would look alike. It fades out toward the edges of the stage. */
- .stage::after{content:"";position:absolute;inset:0;--dots:rgba(255,255,255,.28);--dot-r:16px;--dot-pitch:56px;--fade:68%;
+ .stage::after{content:"";position:absolute;inset:0;--dots:rgba(255,255,255,.16);--dot-r:16px;--dot-pitch:56px;--fade:68%;
background:radial-gradient(circle,var(--dots) 0 var(--dot-r),transparent calc(var(--dot-r) + 2px)) 0 0/var(--dot-pitch) var(--dot-pitch);
-webkit-mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent);
mask-image:radial-gradient(ellipse closest-side,#000 var(--fade),transparent)}
@@ -67,7 +67,7 @@
/* Phones: the three cards share one row, so all of them show on the shorter stage */
@media(max-width:600px){
.blob{filter:blur(36px)}
- .stage::after{--dots:rgba(255,255,255,.42);--dot-r:20px;--dot-pitch:64px;-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent)}
+ .stage::after{--dots:rgba(255,255,255,.3);-webkit-mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent);mask-image:linear-gradient(transparent,#000 28%,#000 72%,transparent)}
.stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;align-items:stretch;gap:8px;padding:12px}
.glass-card{width:auto;min-width:0;min-height:0;padding:12px 8px;border-radius:12px;gap:6px}
.card-title{font-size:13px}