<head>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
</head>
<body>
<section>
<div class="circle-1"></div>
<div class="circle-2"></div>
<div class="circle-3"></div>
<div class="card">
<div>
<h1>ANURAG GHARAT</h1>
<p>1892 1232 1242 0099</p>
</div>
<p>
07/27
</p>
<i class="ri-visa-line"></i>
</div>
</section>
</body>
* {
box-sizing: border-box;
padding: 0px;
margin: 0px;
}
body {
width: 100%;
height: 100%;
background: #fff;
font-family: 'Noto Sans', sans-serif;
background: #0f0c29;
background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
}
section {
height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
.circle-1 {
position: absolute;
top: 15%;
left: 30%;
background: #4776E6;
background: linear-gradient(to right, #8E54E9, #4776E6);
background: linear-gradient(to right, #8E54E9, #4776E6);
height: 350px;
width: 350px;
border-radius: 50%;
}
.circle-2{
position: absolute;
bottom: 5%;
right: 35%;
background: #bc4e9c;
/* fallback for old browsers */
background: linear-gradient(to right, #f80759, #bc4e9c);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #f80759, #bc4e9c);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
height: 400px;
width: 400px;
border-radius: 50%;
}
.circle-3 {
position: absolute;
top: 30%;
right: 35%;
background-color: #FF3CAC;
background: #ff9966;
background: linear-gradient(to right, #ff5e62, #ff9966);
background: linear-gradient(to right, #ff5e62, #ff9966);
height: 150px;
width: 150px;
border-radius: 50%;
}
.card {
height: 300px;
width: 500px;
border-radius: 20px;
/* other styles */
background: rgba(39, 39, 39, 0.1);
backdrop-filter: blur(60px);
/* fallback cross browser compatibility */
backdrop-filter: blur(60px);
z-index: 10;
display: flex;
flex-direction: column;
justify-content: center;
padding: 40px;
color: #fff;
border: 2px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 0 80px rgba(0, 0, 0, 0.3);
}
.card>i {
position: absolute;
top: 10%;
right: 10%;
font-size: 2.5rem;
}
.card>div>p {
letter-spacing: 3px;
word-spacing: 10px;
margin-top: 10px;
font-size: 28px;
font-family: 'Courier New', Courier, monospace;
}
.card>p {
position: absolute;
bottom: 10%;
fill: #fff;
letter-spacing: 3px;
word-spacing: 10px;
margin-top: 10px;
font-size: 20px;
}
.card>div>h1 {
font-weight: lighter;
font-size: 16px;
}
.circle-1{
animation: bounce 4s linear infinite;
}
.circle-2{
animation: bounce 4s linear infinite 1s;
}
.circle-3 {
animation: bounce 4s linear infinite 2s;
}
@keyframes bounce {
0% {
transform: translateY(0px);
}
25% {
transform: translateY(10px);
}
50% {
transform: translateY(0px);
}
75% {
transform: translateY(-10px);
}
100% {
transform: translateY(0px);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.