Create this beautiful Glassmorphism Card using only HTML & CSS in under 1 minute!
This is one of the cleanest, modern UI effects used in today's websites — from landing pages to dashboards.
This animation includes:
✨ Frosted glass blur
✨ Gradient glow
✨ Floating soft animation
✨ Modern fonts & colors
✨ Premium UI experience
Perfect for beginners, students, UI designers, and web developers.
👇 FULL YouTube-safe code (no angle brackets)
Copy → Paste → Try → Share!
⭐ HTML (SAFE CODE – NO angle brackets )
!DOCTYPE html
html lang="en"
head
meta charset="UTF-8"
meta name="viewport" content="width=device-width, initial-scale=1.0"
title Amit Tutorial – Glassmorphism Card /title
link rel="stylesheet" href="style.css"
head
body
div class="card"
h2 Amit Tutorial /h2
p Your daily dose of beautiful HTML & CSS projects. /p
button Explore Tutorials /button
/div
/body
/html
⭐ CSS (SAFE CODE – NO angle brackets)
body{
margin:0;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:radial-gradient(circle at top,#1b1b35,#0a0a16);
font-family:'Poppins',Arial, sans-serif;
overflow:hidden;
}
body::before,
body::after{
content:"";
position:absolute;
width:350px;
height:350px;
background:radial-gradient(circle,#7afcff55,#0000);
top:-80px;
left:-60px;
filter:blur(60px);
z-index:-1;
}
body::after{
background:radial-gradient(circle,#8a7aff55,#0000);
bottom:-60px;
right:-60px;
}
.card{
width:300px;
padding:32px;
border-radius:22px;
text-align:center;
background:rgba(255,255,255,0.08);
border:1px solid rgba(255,255,255,0.15);
backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);
box-shadow:0 10px 40px rgba(0,0,0,0.45),0 0 40px rgba(122,252,255,0.1);
animation:float 4s ease-in-out infinite alternate;
}
.card h2{
margin:0;
font-size:24px;
font-weight:600;
background:linear-gradient(90deg,#7afcff,#8a7aff);
-webkit-background-clip:text;
color:transparent;
}
.card p{
margin:14px 0 22px;
color:#eaeaea;
font-size:14px;
line-height:1.6;
}
.card button{
padding:12px 20px;
border-radius:12px;
border:0;
background:linear-gradient(90deg,#7afcff,#8a7aff);
color:#000;
font-size:14px;
font-weight:700;
cursor:pointer;
transition:0.3s ease;
box-shadow:0 0 18px rgba(122,252,255,0.4);
}
.card button:hover{
transform:translateY(-4px) scale(1.04);
box-shadow:0 0 28px rgba(122,252,255,0.7);
}
@keyframes float{
0%{ transform:translateY(0); }
100%{ transform:translateY(-14px); }
}
--------------------------------------------------------------------------------
#html #css #glassmorphism #ui #webdesign #shorts
#frontend #coding #amitTutorial #cssanimation #modernui #webdevelopment #techshorts
Информация по комментариям в разработке