0% found this document useful (0 votes)
4 views2 pages

Neon Border Card Animation CSS

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Neon Border Card Animation CSS

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neon Border Card Animation</title>
<style>
body {
background-color: black;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.card {
position: relative;
display: flex;
width: 190px;
height: 254px;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 20px;
color: white;
font-family: sans-serif;
transition: box-shadow 0.3s ease;
}

/* Neon rotating gradient ring */


.card::before {
content: "";
position: absolute;
width: 150%;
height: 150%;
background: conic-gradient(
from 0deg,
#ff00c8,
cyan,
#ff00c8
);
animation: none;
transition: opacity 0.3s ease, transform 0.3s ease;
opacity: 0;
filter: blur(8px);
}

/* Dark inner area */


.card::after {
content: '';
position: absolute;
inset: 5px;
border-radius: 15px;
background: #141414;
}

/* Hover effects */
.card:hover::before {
opacity: 1;
animation: spin 3s linear infinite;
}

.card:hover {
box-shadow: 0 0 25px #00fff2, 0 0 50px #ff00c8;
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</head>

<body>
<div class="card">
card
</div>
</body>
</html>

You might also like