,

Shorts: Creating a Glowing Gradient Glassprism Card using CSS

Posted by

CSS Glowing Gradient Glassprism Card #shorts

body {
background-color: #f1f1f1;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.card {
width: 300px;
height: 400px;
background: linear-gradient(145deg, #ff00a6, #00f7ff);
border-radius: 15px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}

.card::before {
content: “”;
position: absolute;
top: -50px;
left: -50px;
width: 200px;
height: 200px;
background: radial-gradient(#ff00a6, transparent);
border-radius: 50%;
transform: rotate(45deg);
}

.card::after {
content: “”;
position: absolute;
top: -20px;
left: -20px;
width: 150px;
height: 150px;
background: radial-gradient(#00f7ff, transparent);
border-radius: 50%;
transform: rotate(-45deg);
}

.content {
padding: 20px;
color: white;
font-family: Arial, sans-serif;
text-align: center;
position: relative;
z-index: 1;
}

.title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}

.description {
font-size: 16px;
line-height: 1.6;
}

CSS Glowing Gradient Glassprism Card #shorts
This is a simple and elegant card design created with CSS. It features a glowing gradient background and glass prism effect, making it perfect for showcasing short pieces of content.